PHP-MySQLi-Database-Class icon indicating copy to clipboard operation
PHP-MySQLi-Database-Class copied to clipboard

help where or , and IN

Open pehser opened this issue 6 years ago • 1 comments

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

pehser avatar Jun 10 '20 10:06 pehser

use rawQuery();

enitechgm avatar Jun 19 '20 10:06 enitechgm