FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


MySQL Time





polly-gone
I want to put a "date added" field in and I want to do it in seconds from Jan 1., 1970 or whenever the time thing starts. How would I do that? (a Linux time stamp or something like that)

Thanks,

-Nick Smile Smile Smile
rvec
then you need the php timestamp.
http://nl3.php.net/manual/en/function.mktime.php

MySQL can store it as an INT date type
polly-gone
Thank you again (again, again, again, again) rvec....

lol

-Nick Smile Smile Smile
Related topics
mysql connection question
php admin and mysql admin console
Mysql And PHP HELP PLZ
Do you use a CMS script?
Question about MySQL!
PHP, MySQL...
PHP Book (Php and Mysql for Dynamic Web Sites)
few mysql questions
E-Cards with PHP & MySQL
HTTP AUTH with PHP and mySQL
Build an online dictionary by PHP/MySQL
Make search engine With PHP and mySQL, for your site
PHP without mySQL
Multiple versions of PHP/MySQL
Help me to Import mysql databases from web into home pc !
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.