I have table like this:
ID | title | category
-----------------------------
1 | product1 | 0
2 | product2 | 0
3 | product3 | 1
4 | product4 | 1
5 | product5 | 3
I have array with ID's, how do I select products with those ID?
I mean something like this but category can be any value from array not only one value like in example.
$result = mysql_query("SELECT * FROM product where category = '$var'");