One "feature" of nesting <cfloop query=..> you should be aware of is that if you reference the outer query from inside the inner query it will always return the first row:

<cfloop query="query1">   
    #query1.myCol#

    <cfloop query="query2">
         #query1.myCol# <--- this will always be row 1 of query1, i.e #query1.myCol[1]# --->

        #query2.myCol#
    </cfloop>

</cfloop>

I seem to remember reading the justification for this strange behaviour, but can't rember what it was...

Cheers
Bert



[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to