$vals = array(2, 5, 8); // ou $vals = "2, 5, 8"; $in = sql_in('id_table', $vals); if ($res = sql_select('colonne', 'table', $in)) { // ... }