note 7203 deleted from time by ronabop

From: Date: Sat, 10 Mar 2001 23:32:27 +0000
Subject: note 7203 deleted from time by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-12238@lists.php.net to get a copy of this message
i think sometimes it's best to declare your colume type in mysql as int rather than timestamp. it's easier that way. whenever you want to read the $time["time"], just date("d-m-Y, h:i:s",$time["time"]). as $time["time"] is an int type. when inserting data into database, just call for time();. simple.. though i do not know if there's any cons. but it makes it less complicated than declaring type as timestamp. anyway, if anyone knows this pose a problem, let me know. thanks.

« previous php.notes (#12238) next »