阅读背景:

使用PHP和MySQL存储当前时间的推荐方法是什么?

来源:互联网 

My initial approach was:

我最初的做法是:

$current = time(); // save this to column CURRENT_TIME with column type VARCHAR

//retrieve it like this
$retrieved = mysql_query(....) //assume query for getting the stored time value
$time = strtotime($retrieved);
$current 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: