note 23172 deleted from function.date by dams
| From: | dams@php.net | Date: | Sun, 28 Jul 2002 14:48:00 +0000 |
| Subject: | note 23172 deleted from function.date by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33816@lists.php.net to get a copy of this message | ||
Early on someone was giving a simple way to add a time/date to a MySQL entry. The best way is to
use mysql's NOW() function like:
mysql_query('INSERT INTO table(time, string) VALUES(NOW(), "See how easy it is
NOW()?");');