note 52200 deleted from function.date by nlopess
| From: | nlopess@php.net | Date: | Sun, 31 Jul 2005 16:00:46 +0000 |
| Subject: | note 52200 deleted from function.date by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-92835@lists.php.net to get a copy of this message | ||
Note Submitter: aomairi at etech-systems dot com
----
in order to insert date into MySQL database date function should be used this way:
$today = date("Y-m-d");
not using dashes in the function will result in inserting the date as zeros:0000-00-00