Look at the answer to a similar question that has been asked here before (second code sample):
I have an array of integers, how do I use each one in a mysql query (in php)?
It boils down to:
- create the SQL string with the right amount of question marks
- use
call_user_func_array() to bind your array to the query string