Probably you can just assign the query to a session variable: <cfset session.myQuery = myQuery />
Then output the query: <cfoutput query="session.myQuery"> <!--- do stuff ---> </cfoutput> You don't need to change the query itself into structures. -- Josh -----Original Message----- From: Scott Stewart [mailto:sstwebwo...@bellsouth.net] Sent: Monday, March 09, 2009 11:33 AM To: cf-talk Subject: CF Structures.. brain fried I've got a query that returns two fields for each record (id, name). There can be several records returned Because of the way that the site is set up I need to dump the results into the session scope and then loop over them on an output page I think I over complicated it by using Ben Nadel's QueryToStruct script. Is there a simple way to do this? -- Scott Stewart ColdFusion Developer 4405 Oakshyre Way Raleigh, NC 27616 (h) 919.874.6229 (c) 703.220.2835 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320298 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4