I want to know how to query if PHP is greater than or equal to a certain value
一個人去看海
一個人去看海 2019-04-22 13:48:21
0
1
1143
$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);

This is a check method for equal to a certain value, so how to write greater than or equal to a certain value


一個人去看海
一個人去看海

reply all(1)
瓢老师
$travels_list = $this->db->table('travels')->where([
['status', '=', 0),
[ 'hot', '=' ,1],
['id', '>', 10]
])->lists();

Not in pure English....



Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template