2
这里是选择所有的订单放在11月25日代码:Mysql的要求 - 特定的时间跨度(UNIX时间戳)
$start = strtotime('2015-11-25 00:00:00'); // 1448409600
$end = strtotime('2015-11-25 23:59:59'); // 1448495999
SELECT * FROM `orders` WHERE `time-placed` BETWEEN '$start' AND '$end'
尽管代码工作得很好,做它应该是什么 - 有没有解决方案更好我觉得有应该是更优雅的方式。 谢谢