$ids = join(',',$user_ids);
$sql = "SELECT * FROM USERS WHERE user_id IN ($ids)";
WHEREを使用して配列をクエリに渡す条項
http://www.php.net/manual/en /function.join.php
http://www.php.net/manual/en /function.implode.php
$ids = join(',',$user_ids);
$sql = "SELECT * FROM USERS WHERE user_id IN ($ids)";
WHEREを使用して配列をクエリに渡す条項
http://www.php.net/manual/en /function.join.php
http://www.php.net/manual/en /function.implode.php