$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();
不可純英文....