开发者

How do I create time to be store as mysql TIMESTAMP type, in PHP?

开发者 https://www.devze.com 2022-12-31 23:20 出处:网络
How do I create time to be store as mysql TIMESTAMP type, in PHP?开发者_高级运维On the PHP side, you can use the date function:

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();
0

精彩评论

暂无评论...
验证码 换一张
取 消