You are here: Re: [PHP] mysql/php date functions.. « PHP « IT news, forums, messages
Re: [PHP] mysql/php date functions..

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация