[eluser]TomsB[/eluser]
I get:
Code:
Array
(
[0] => `name` LIKE '%test%'
[1] => OR `name` LIKE '%test2%'
)
I am experimenting with this right now:
Code:
...
$where = implode("\n", $this->db->ar_where);
$this->db->_reset_select();
...
$like = implode("\n", $this->db->ar_like);
$this->db->_reset_select();
...
$query = $this->db->query('SELECT id
FROM table WHERE '.$where.' OR '.$like);
...
Am I on the right track?