search

Home  >  Q&A  >  body text

I want to know how to query if PHP is greater than or equal to a certain value

$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


一個人去看海一個人去看海2072 days ago1157

reply all(1)I'll reply

  • 刘某

    刘某2019-04-22 14:06:03

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

    Not in pure English....



    reply
    0
  • Cancelreply