You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m looking for a method to use the IN statement too.
At this moment the only way I’ve found to use a IN is to manually write the query skipping the bind (that is not the "right" solution).
$id = "1,2,3,4";
$ids = implode(",", $id);
$sql = $db->query("UPDATE " . DB_PREFIX . "users SET status = " . $status . " WHERE id IN (:id)", array("id"=>$ids));
Only the first id in $idswill be updated
The text was updated successfully, but these errors were encountered: