in reply to array from query to db
Besides the DBI documentation, have a look at
DBI Recipes. What you need, and much more, is already there.
Fruit and Vegetables
Me, that's why I'm so cool
Logic (separated into Horror and Brilliance)
Results (258 votes). Check out past polls.