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

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -