Re: Adding an DATETIME as a string to a mySQL databse....
| From: | Erik | Date: | Thu, 13 Jul 2000 06:02:45 +0000 |
| Subject: | Re: Adding an DATETIME as a string to a mySQL databse.... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6385@lists.php.net to get a copy of this message | ||
MySQL wants only YYYYMMDDHHMMSS in a timestamp(14) field.
----- Original Message -----
From: "Richard Lynch" <richard@zend.com>
To: <php-general@lists.php.net>
Sent: Wednesday, July 12, 2000 4:08 PM
Subject: Re: [PHP] Adding an DATETIME as a string to a mySQL databse....
> In article <B5920F6A.4BA5%mattias@popwire.com>, mattias@popwire.com
> (Mattias Hedman) wrote:
>
> > When I build the string using DATE("Y-m-d H:i:s") in PHP and inserts it
into
> > the database the only thing that gets added in the row is DATETIME
default
> > value (0000-00-00 00:00:00).
>
> Is that a format MySQL will accept? check http://www.MySQL.com
> --
> Richard Lynch | If this was worth $$$ to you, buy a CD
> US Customer Support Director | from one of the artists listed here:
> Zend Technologies USA | http://www.L-I-E.com/artists.htm
> http://www.zend.com | (this has nothing to do with
> Zend, duh!)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>