Welcome Guest, Not a member yet? Register   Sign In
Active Record "where()->or_like()" generates "AND LIKE" not "OR LIKE"!
#6

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


Messages In This Thread
Active Record "where()->or_like()" generates "AND LIKE" not "OR LIKE"! - by El Forum - 12-09-2008, 02:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB