Posted by John Nichel on 09/26/05 22:43
bruce wrote:
> or.. better yet.
>
> if i do a php -> time(), i get a unix_timestamp var. how do you guys store
> this in mysql. you can't simply do an insert into a mysql/timestamp var. so
> how do you convert it?
I don't convert it. I store the UNIX timestamp in an INT(11) column.
> also, once you have the mysql tbl, how do you go from the mysql timestamp
> var ->> the php var?
Since I keep it in the UNIX timestamp format, there's no converting
between the two.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com
[Back to original message]
|