codeigniter where not in query code example
Example 1: not where in codeigniter
$ignore = array(12, 13);
$this->db->where_not_in('crm.user_id', $ignore);
Example 2: codeigniter where_not_in
$names = array('Frank', 'Todd', 'James');
$this->db->where_not_in('username', $names);
// Produces: WHERE username NOT IN ('Frank', 'Todd', 'James')