php - Combined conditions in CI ActiveRecord -
i want sql query like
select * x = 10 , (y=12 or h=15)
how can achieve in ci activerecord format?
see active record reference
$where="x = 10 , (y=12 or h=15)"; $this->db->select('*'); $this->db->from('mytable'); $this->db->where($where); $query = $this->db->get();
Comments
Post a Comment