如何在此表单中设置为数据库当前日期时间



代码运行良好,但我找不到任何代码来设置日期&时间PLZ帮助这是我的代码,它能以任何方式工作吗?

 mysql_query("INSERT comments SET name='$name', fb='$fb', msg_id_fk='1', date_time='$date', comments='$comments'")
 or die(mysql_error());

`试试这个代码$today=日期("Fj,Y,g:ia");

`

相关内容

最新更新