I have the following active record query:
$this->db->select('id, firstname, surname');
$this->db->from('users');
$this->db->where('site_id',$siteid);
$this->db->like('firstname', $name);
$this->db->or_like('surname', $name);
$query = $this->db->get();
This works fine with the exception that my names within the DB can contain upper and lowercase names. If the case does not match, the query fails.
Is there any way I can ignore the case with my query?