How do I create time to be store as mysql TIMESTAMP type, in PHP?
How do I create time to be store as mysql TIMESTAMP type, in PHP?开发者_高级运维
On the PHP side, you can use the date function:
$date = date('Y-m-d H:i:s');
use now() in select query.
like this,
dattime = now();
精彩评论