There is an array. It is required to select from the database all the rows where the value of the specified column will be equal to one of the array elements.
The essence of the question is how to do it correctly , shortly and quickly. Everybody knows how to make an invention, but a competent approach is required.
example:
$arr = array(0=>1, 1=>2, 2=>4 /* ... n=>m */) $sql=mysql_query("SELECT title,value FROM $someTable WHERE id='любому из элемента масива $arr'"); while ($data=mysql_fetch_assoc($sql)) //do something