【发布时间】:2018-06-20 08:20:33
【问题描述】:
我在我的网页中创建了这个对象。
input type="datetime-local" name="datentime" size="15" style="height:30px; font-size:18px" placeholder="
现在我需要检索该值并将其放入我的 mysql 数据库中。我尝试了很多,但无法将值插入数据库。我的php代码如下。
$event_dnt = strtotime($_POST["datentime"]);
数据库存储为 YYYY-MM-DD HH:MM:SS
【问题讨论】:
-
您显示的代码不会在表格中插入任何内容。它只是为变量赋值。显示您的代码,并显示表架构。