Yes Bert... I discovered that in my attempts

Thanks for sharing that
Tim

-----Original Message-----
From: Bert Dawson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 7:35 AM
To: CF-Talk
Subject: RE: nesting output from 2 queries

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