note 19753 deleted from function.date by sniper
| From: | sniper@php.net | Date: | Sat, 11 Oct 2003 16:49:16 +0000 |
| Subject: | note 19753 deleted from function.date by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58250@lists.php.net to get a copy of this message | ||
Note Submitter: joemamacow@hotmail.com
----
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);