I have and array with two values and I want to use it with sql IN operator in select query.
Here is the structure of my table
id comp_id 1 2 2 3
you can only pass string to mysql as query, so try this
mysql_query("SELECT * FROM table WHERE comp_id IN (".implode(',',$arr).")");