How do I insert the date into my table?
All you need to do is use the built-in CURDATE function, and it works a little like this:
<?php
$q = mysql_query("UPDATE todaysdate SET todayis = CURDATE()");
//sets the field todayis in table todaysdate to 2007-09-18 or whatever the current date is
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More mysql PHP Questions
How do I group the results of a mysql query?How do I find the number of rows affected by a query?
How do I return the date with mySQL?
How do I delete a row from a table?
how do i upload an image to database?
