Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将日期与从表单提交的信息一起发送到数据库是多么简单。
如果我为表中的日期创建一个新列,我该如何秘密提交该信息
添加日期的方式与将任何其他数据添加到数据库中的方式相同。
INSERT INTO table VALUES (1,2,3)
例如,如果您在 MySQL 中使用 Date 类型,则需要向它发送一个 unix 时间戳,以便正确存储数据。但是是的,使用 PHP 向数据库发送日期是完全可能的。