How do I return the date with mySQL?
For instance when a user registers for the site, you might want to record the date they registered on, and so forth.
To do so, use the CURDATE() function within mysql, like this:
$todayis = mysql_query("SELECT CURDATE() FROM table");
$itis = mysql_result($todayis,0,0);
echo "Today is: $itis";
More mysql PHP QuestionsHow do I delete a row from a table?
What is difference between mysql_fetch_array and mysql_fetch_object?
How do I update the contents of a table row?
How do I find the number of rows in a result set?
How do I group the results of a mysql query?