Re: mysql/php date functions..
| From: | John Nichel | Date: | Mon, 26 Sep 2005 18:19:28 +0000 |
| Subject: | Re: mysql/php date functions.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223217@lists.php.net to get a copy of this message | ||
bruce wrote:
thanks... but that's not it john... i'm not worried about creating the sql_statement in the php... i'm concerned that i can't seem to craft/create a basic sql cmd within mysql to get a value (other than NOW()) to work... if i do (from mysql) -->> insert into foo (id, time) values (2, 333333), it doesn't work... if i -->> insert into foo (id, time) values (2, NOW()), it works!!... my question is why???Without knowing the structure of your table, my guess is that the column time is expecting a valid timestamp, and 333333 is not a valid MySQL timestamp. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com