$travels_list = $this->db->table('travels')->where(array('status'=>0,'hot'=>1))->lists(); $this->assign('travels_list',$travels_list);
$travels_list = $this->db->table('travels')->where(array('status'=>0,'hot'=>1))->lists();
$this->assign('travels_list',$travels_list);
这个是等于某个值的查法,那么大于等于某个值怎么写呢
刘某2019-04-22 14:06:03
$travels_list = $this->db->table('travels')->where([ ['status', '=', 0), [ 'hot', '=' ,1], ['id', '>', 10] ])->lists();
不可纯英文....