日期:2014-05-16 浏览次数:20517 次
$t1 = 2014-03-16 09:15:20; $t2 = 2014-04-16 09:15:20; $timestart = strtotime($t1); $timeend = strtotime($t2); $model = M("你的数据表") $res = $model -> where("time >= $timestart and time <= $timeend ")->select();