|
with $sth->fetchrow, you might have to step through each item in a while loop and push the result into your @gals array.
does fetchrow return a hash or an array??
with $sth->fetch, you can build a hash that reflects the data coming out of the database and push eash hash into the array you're going to return.
so you have $result->[ARRAY]->[Hash]
|