Yes. $this->db->where() allows you to write articles manually. You can do it:
$this->db->where('city', 'My City'); $this->db->where('state', 'My State'); $this->db->where('(name LIKE %name1% OR name LIKE %name2%)', null, false);
Setting the third parameter to false prevents CodeIgniter from trying to add backticks to the sentence.
View Active Record Documentation . Section $ this-> db-> where (); explains four methods you can use to set WHERE clauses.
birderic
source share