$mysqldate = date( 'Y-m-d H:i:s', $php_unix_timestamp );
$php_unix_timestamp = strtotime( $mysqldate );
$query = "UPDATE table SET datetimefield = FROM_UNIXTIME($php_unix_timestamp ) WHERE...";
$query = "SELECT UNIX_TIMESTAMP(datetimefield) FROM table WHERE...";
歡迎光臨 資訊家電班NO7 (http://imce07.freehostia.com/forums/) | Powered by Discuz! 7.2 |