I want to combine AND OR mysql queries in CI. I have already seen this thread: http://codeigniter.com/forums/viewthread/92818/. But they don\'t provide the exact solution th
and this will work?
$this->db->where('LastName', 'Svendson'); $this->db->where('Age', 12); $this->db->where("(FirstName='Tove' OR FirstName='Ola' OR Gender='M' OR Country='India')", NULL, FALSE); $query = $this->db->get('Persons'); return $query->result();