求thinkphp 查询当天 数据的方法

我有一个表,使用的time()函数获取时间,并记录到create_time这个字段里面,现在我想查询当天的新增数据条数,该怎么查?求详细代码

$cur_date = strtotime(date('Y-m-d'));
M('table')->where("create_time >= '{$cur_date}'")->select();

温馨提示:答案为网友推荐,仅供参考
相似回答