Re: DATE insertion
| From: | John W. Holmes | Date: | Mon, 18 Aug 2003 01:36:38 +0000 |
| Subject: | Re: DATE insertion | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159880@lists.php.net to get a copy of this message | ||
Cesar Aracena wrote:
Hi all, First of all, thanks to everyone who helped me with the "checkbox" issue. I have an issue here while trying to INSERT INTO a MySQL table a date in a DATE format (YYYY-MM-DD). Obviously saying date(Y,m,d) doesn't work. What PHP function should I use?date('Ymd') to put it in a YYYYMMDD format. If you want to use date('Y-m-d') then you need to enclose the date string in quotes in your query. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com