Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested CFOUTPUT

Status
Not open for further replies.

manj

Programmer
Sep 22, 2000
28
GB
How do I go about solving this type of problem:

<cfoutput query1>
returns many roles
</cfoutput>

<cfoutput>
return a single value
<cfoutput>

<cfoutput query1>
continue displaying initial query1 results
</cfoutput> [sig][/sig]
 
You have noticed that you cannot nest cfoutputs.

I am not 100% sure what you are trying to do, but have you tried the <cfloop query=&quot;query1&quot;> approach?

cfloops can be nested, and then the simple <cfoutput> tag can be used for the output.

Inside a <cfoutput query=&quot;&quot;>, you can reference any other cf variables by simply placing them in your code wrapped in # signs.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top