Open pehser opened 4 years ago
The examples have $db->where ("(id = ? or id = ?)", Array(6,2)); $db->where ("login","mike") $res = $db->get ("users");
but if you need to use IN
$db->where ("(id in (?) or id2 in (?))", Array('6,2','5,2')); $db->where ("login","mike") $res = $db->get ("users");
It doesn’t work
use rawQuery();
The examples have $db->where ("(id = ? or id = ?)", Array(6,2)); $db->where ("login","mike") $res = $db->get ("users");
but if you need to use IN
$db->where ("(id in (?) or id2 in (?))", Array('6,2','5,2')); $db->where ("login","mike") $res = $db->get ("users");
It doesn’t work