Have to agree with everyone else, we need to see more of the code.

If you have gotten a query from a datasource, the only thing that would stop
you from looping over the datasource query a second time is if you are
trashing that variable.


On Wed, Jun 9, 2010 at 10:45 AM, Dave Hatz <[email protected]>wrote:

>
> I am trying to loop over a dataset twice.  I am trying using CFLOOP but the
> 2nd CFLOOP will not process.
>
> <cfquery dataset="mydsn" name="dset">
>  select first,last from name
> </cfquery>
>
> //loop through DataSet 1st time
> <cfloop query="dset">
>  ....
> </cfloop>
>
> //Now I want to loop through the DataSet a 2nd time
> <cfloop query="dset">
>  .....
> </cfloop>
>
> How do I get the 2nd cfloop to loop over the DataSet without calling the
> query again?
>
> Thanks,
> Dave
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334399
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to