Welcome Guest, Not a member yet? Register   Sign In
or_Like Question
#1

[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.


Messages In This Thread
or_Like Question - by El Forum - 04-16-2011, 06:51 AM
or_Like Question - by El Forum - 04-16-2011, 08:03 AM
or_Like Question - by El Forum - 04-16-2011, 08:11 AM
or_Like Question - by El Forum - 04-16-2011, 08:18 AM
or_Like Question - by El Forum - 04-16-2011, 08:22 AM
or_Like Question - by El Forum - 04-16-2011, 09:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB