I want to produce the following SQL code using Active Records in Codeigniter:
WHERE name != \'Joe\' AND (age < 69 OR id > 50)
Doing t
You can use one large string.
$this->db->select()->from('users')->where("name != 'Joe' AND (age < 69 OR id > 50) ");