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 find the number of rows affected by a query?
how can I show an image from mysql?
How do I find the ID of a new row added to a table?
How do I return a random row from the database?
What is the correct way to connect to a MySQL database?