[eluser]Mr. Fulop[/eluser]
Hi everyone.
I have an issue when using like from active record.
Code:
$domeniu = 'whatever';
$this->db->set('field','1');
$this->db->like('other_field', $domeniu);
$this->db->limit(1);
$this->db->update('table');
The above produces:
Code:
UPDATE `table` SET `field` = '1' LIMIT 1;
While the following query works fine and it is what I want:
Code:
$this->db->query("update table set field='1' where other_field like '%$domeniu%' limit 1");
Am I missing something?
Cheers,
Alex