View Single Post
Old 05-07-2009, 08:17 PM   #7 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Just to note, you can probably save yourself a query by pulling all the data you need at once from the first query.

Then you can store the data that you need for the second output in an array which already has the duplicates taken out.

Then for the dropdown, you simply loop through the array instead of calling another call to the DB....
allworknoplay is offline  
Reply With Quote