PHP and MySQL: how to store time and compare time

preview_player
Показать описание
Time is a little complicated variable: month-day-year Hour-minute-second
MySQL data type:datetime
PHP function: date('Y-m-d H:i:s')
To compare time, it is better to convert it to UNIX time
In PHP mktime, MYSQL UNIX_TIMESTAMP for UNIX time
Example:
CREATE TABLE members (
`member_id` mediumint(8) unsigned NOT NULL,
`dept_type` tinyint(4) NOT NULL default '0',
`edu_type` tinyint(4) NOT NULL default '0',
`modify_date` datetime default '0000-00-00 00:00:00',
PRIMARY KEY (`member_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Compare time
More about this video:
Рекомендации по теме
Комментарии
Автор

why do all the best matching titles have the worst videos....

rw
join shbcf.ru