Jump to content

ViN86

Members
  • Posts

    63
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ViN86's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. well... yea, it means that the info on the page will be posted to the page it's already on. so when a user clicks submit or enter or w/e, the info entered will be posted to the same page and the PHP script will be called. in your PHP code, you would then take the info posted and do what you want with it.
  2. make a function that checks if replies exist displays the replies. call it recursively to display all replies for each. a recursive function would suit you much better in this case rather than multiple WHILE loops.
  3. i believe TEXTAREA fields arent the same as the other input fields with respect to the value option. instead, try this: <TEXTAREA NAME="description" COLS="40" ROWS="6"><?php echo $desc; ?></TEXTAREA>
  4. i was just about to tell you to use mysql_num_rows to check for a result
  5. id probably do it with javascript and PHP... get the URL from the database store the URL into a variable, let's call it $url_redirect then pass echo '<script>window.location="'.$url_redirect.'"</script'; i think that's what you were askin for...
  6. well, i was just thinkin of a quick fix.
  7. did you consider using a $_SESSION variable?
  8. just use $_REQUEST['names'] to get the value in the select box. make sure it's in a form.
  9. when you reference files, you need to reference them as if they were being loaded for the page the code is included into. so if youre in the /htdocs directory and you include a file in the /htdocs/includes directory, then the file needs to call the images as if it were in the /htdocs directory. you can use PHP to create a dynamic link that calls the image location based on where the file is being called.
  10. many free implementations. try Wordpress. it's a very popular one. http://wordpress.org/download/
  11. first, id return the number of entries via mysql_num_rows() once you get the number of rows, determine how many results per page you want. (ie, 55 results with 10 results per page would be 6 pages total. 5 with 10 and 1 with 5). create the links and have them point to the same page, then use the $_GET method to get the page number. based on the page number, modify the SELECT statement to retrieve only the number of results you want then use the while($var = mysql_fetch_array) statement to display all fields. the $_GET method would be done like... results.php?page=3 then $_GET['page'] would return the page number... 3
  12. just check to see if the username or email exists in the database before it is inserted. it doesnt matter how many pages there are, there should be one INSERT query. just SELECT * FROM table WHERE username='$username' and a SELECT* FROM table WHERE email='$email' queries and if they return something, then stop the INSERT statement from being called.
  13. try this... <head> <?php if ($_SERVER['PHP_SELF'] == "index.php"){ ?> <link href="styleindex.css" rel="stylesheet" type="text/css" /> <?php } else if ($_SERVER['PHP_SELF'] == "about.php"){ ?> <link href="styleabout.css" rel="stylesheet" type="text/css" /> <?php } ?> </head> this is the header for the page.
  14. PHP inside a .css file will not be read with default settings.
  15. so, you use header() to add the CSS info? what im really asking is, is the CSS code inside a .css file?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.