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





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to