note 19753 added to function.date

From: Date: Sun, 10 Mar 2002 05:07:34 +0000
Subject: note 19753 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-27566@lists.php.net to get a copy of this message
For a quick begginerrs note if you want to insert a date into mySQL field that is of DATE type, then do something like the following: $date = date("Y-m-d"); mysql_query("INSERT INTO date_table VALUES ('$name', '$date')", $db_connection); -- http://www.php.net/manual/en/function.date.php http://master.php.net/manage/user-notes.php?action=edit+19753 http://master.php.net/manage/user-notes.php?action=delete+19753 http://master.php.net/manage/user-notes.php?action=reject+19753

« previous php.notes (#27566) next »