given an array
$galleries = array
(
[0] => 1
[1] => 2
[2] => 5
)
I want to have a sql query that uses the values of the array in its WHERE clause like:
SELECT *
FROM galleries
WHERE id = //values of array $galleries... eg. (1 || 2 || 5) //
How can I generate this query string to use with mysql?