in reply to confused about reading from database using an array

you can use the SQL "IN" statement:
SELECT id, order_num, state FROM orders WHERE names IN ("name1","name2 +","name3")
just make sure you use the $dbh->quote method to construct the quoted values.

Replies are listed 'Best First'.
Re^2: confused about reading from database using an array
by Anonymous Monk on Dec 12, 2006 at 20:49 UTC
    Are you saying I can replace the list with the array?
    SELECT id, order_num, state FROM orders WHERE names IN (@names)