RE: mysql/php date functions..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



john...

that appears to be it!! although i would have assumes it would have done a
most significant bit fill with 0's...

so my question also comes down to .. do i use the php date functions for
date/time manipulation.. or do i use the mysql functions....

any thoughts/suggestions...

-bruce


-----Original Message-----
From: John Nichel [mailto:john@xxxxxxxxxxxx]
Sent: Monday, September 26, 2005 11:19 AM
To: php-general@xxxxxxxxxxxxx
Subject: Re:  mysql/php date functions..


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@xxxxxxxxxxxx

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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux