Re: mysql/php date functions..
| From: | John Nichel | Date: | Mon, 26 Sep 2005 19:43:03 +0000 |
| Subject: | Re: mysql/php date functions.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223233@lists.php.net to get a copy of this message | ||
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