[eluser]DanTheMan[/eluser]
Dear Community,
Please could you provide me some information with the following problem:
I am trying to use the or)like function but I need to be able to say or_like('column', $match AND 'anothercolum' = 'xx').
Code:
$this->db->where('xx_id', $this->config->item('xx_id'));
$this->db->like('fname', $match);
$this->db->or_like('lname', $match);
$this->db->or_like('email', $match);
Please could someone give me a hint to the correct syntax to adapt this, so each of the like clauses check the xx_id = config->item xx_id.
I am using CI 2.0.
Thanks in advanced.