标签:time() nbsp 时间戳 form create rom date time mysql
// 时间为当前是日期
$date = strtotime(date(‘Y-m-d‘,time()));
//dd($date);
//UNIX_TIMESTAMP(‘2006-11-04 12:23:00‘);
$where = "DATE_FORMAT(FROM_UNIXTIME(create_time),‘%Y-%m-%d‘) = DATE_FORMAT(NOW(),‘%Y-%m-%d‘)";
$where = "UNIX_TIMESTAMP(DATE_FORMAT(FROM_UNIXTIME(create_time),‘%Y-%m-%d‘)) = $date";
标签:time() nbsp 时间戳 form create rom date time mysql
原文地址:http://www.cnblogs.com/simadongyang/p/7465913.html