Okay, here's the case: I have an SQL query like this:
UPDATE foo
SET flag=true
WHERE id=?
Now, I have a PHP array, which has a list of IDs. Is there a neat way of doing this, outside parsing something like:
foreach($list as $item){
$querycondition = $querycondition . " OR " . $item;
}
and using that in the where clause?