RE: [PHP] saving a date
| From: | Dan Joseph | Date: | Fri, 09 May 2003 16:12:02 +0000 |
| Subject: | RE: [PHP] saving a date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147037@lists.php.net to get a copy of this message | ||
There's a function Now() you can use. Example:
INSERT INTO a (b, c, d) VALUES ('b', 'c', Now())
-Dan Joseph
> -----Original Message-----
> From: Amanda McComb [mailto:amccomb@indiana.edu]
> Sent: Friday, May 09, 2003 12:09 PM
> To: php-general@lists.php.net
> Subject: [PHP] saving a date
>
>
> I am looking through my Web Database Applications with PHP amd MySQL book,
> and I can't find the answer. All I want to do is insert today's date/time
> into the database. How can I get the current date/time?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>