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 QuestionsFirst i created the log in page now i want to connect to the database from where username and password table is save.How i create the php codes to give relation between them?
What is the correct way to connect to a MySQL database?
How do I order the results of my query?
How do I group the results of a mysql query?
How do I include a conditional in my mysql query?