I want to produce the following SQL code using Active Records in Codeigniter:
WHERE name != \'Joe\' AND (age < 69 OR id > 50)
Doing t
Solved. Dynamically generate the SQL query and plug it into $this->db->where(). Thanks guys!
$this->db->where()