note 23172 added to function.date
| From: | archangel_617b at email dot com | Date: | Thu, 11 Jul 2002 02:35:27 +0000 |
| Subject: | note 23172 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32875@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()?");');
--
http://www.php.net/manual/en/function.date.php
http://master.php.net/manage/user-notes.php?action=edit+23172
http://master.php.net/manage/user-notes.php?action=delete+23172
http://master.php.net/manage/user-notes.php?action=reject+23172