ThingEngineer / PHP-MySQLi-Database-Class

Wrapper for a PHP MySQL class, which utilizes MySQLi and prepared statements.
Other
3.3k stars 1.34k forks source link

help where or , and IN #909

Open pehser opened 4 years ago

pehser commented 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

enitechgm commented 4 years ago

use rawQuery();