i am working on making a blog.. this is just for me to learn php and mysql. so right now I am trying to make it post the time data to the database.
here are the variables
i am using this code
$time= date("F j, Y, g:i a");
so i was told to use
mysql_query("INSERT INTO blog (message, username, date, time, title) VALUES('$blog', '$lusername', '$numdate', '$numtime', '$title'")
or die("Error: ".mysql_error());
but i dont understand how to use that. so could someone explain what i am missing.
"SELECT NOW() As 'TheTime', someField FROM someTable"