|Pathologically Eclectic Rubbish Lister|
DBI: Build array of hashes with fetched results?by Spidy (Chaplain)
|on Feb 17, 2007 at 23:08 UTC||Need Help??|
Spidy has asked for the
wisdom of the Perl Monks concerning the following question:
Greetings, Fellow Monks.
For a project I've been working on lately, we have a MySQL table set out like this:
And what we're trying to do is retrieve the values of id and descr for any rows that have the same link_id. We want to store all of the data retrieved in an array of hashes upon retrieving it, so that later on we can use a foreach loop on the array to loop through our results and generate the HTML that we need. Does anyone know of a way that I could do this?