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

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

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -