求教thinkphp如何定义查询条件包含多个复合查询

如题所述

$where = "id >= 1 and id <= 10 and checked = 1 and bclassid = 1";
$data = M('test')->where($where)->order('time')->limit(10)->select();

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