写个非常简单的查询语句$table=M('order');
$map['eatdate'] =strtotime(date('y-m-d'));
$count = $table->where($map)->count();在模版就出问题了,where条件直接就没了变成了:
SELECT COUNT(*) AS tp_count FROM `diet_order` LIMIT 1 [ RunTime:0.0180s ],求大神解答一下,相同控制器里面的另外一条查询语句就完全没有问题啊,到底什么情况