如果用户登录到特定页面,如何将条目(在本例中为‘time/date’)插入到数据库中。这是自动的。
这个是可能的吗?
谢谢你的帮助。:)
发布于 2013-06-29 20:13:51
请参阅MySQL Date and Time functions
示例:
<?php
$query = mysql_query("INSERT INTO table SET column = NOW()");
?>发布于 2013-06-29 20:08:05
<?php
$date = date("Y-m-d H:i:s");
// mysql insert query here to insert $date.
?>将此脚本添加到页面顶部。
https://stackoverflow.com/questions/17380005
复制相似问题