$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);
这个是等于某个值的查法,那么大于等于某个值怎么写呢
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
$travels_list = $this->db->table('travels')->where([ ['status', '=', 0), [ 'hot', '=' ,1], ['id', '>', 10] ])->lists();不可纯英文....