R
R
Robot2015-11-17 19:19:54
PHP
Robot, 2015-11-17 19:19:54

Doesn't add value to database?

Request directly to the database from the admin panel
INSERT INTO `day` SET `opentime`='1447776805'
Added 1 line. Inserted row identifier: 14 ( The request took 0.0869 sec. )
The opentime field has the TIMESTAMP type, I look in the database in the 0000-00-00 00:00:00 field, what's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rikcon, 2015-11-17
@iam_not_a_robot

https://dev.mysql.com/doc/refman/5.5/en/date-and-t...
And if you still need to store unixtime, then welcome to INT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question