Sathya M
04/05/2024, 1:41 PM<cfoutput query="myquery">
#myquery.name#<br>
</cfoutput>
This will produce output like this,
name1
name2
name3
But I've mistakenly put an additional cfoutput inside the loop.
<cfoutput query="myquery">
<cfoutput>#myquery.name#</cfoutput><br>
</cfoutput>
I got this output with the inner cfoutput tag,
name1
name2
name3
name2
name3
name3
(that was just a sample qry, I had lot of additional index loops inside my cfoutput queries) I spent almost an hour debugging this issue in my app 🥲 Its in both CF and Lucee. It would be great if anyone explain this? I suspect its due to nested cfoutputs, Any thoughts on this?Rodney
04/05/2024, 1:44 PMSathya M
04/05/2024, 1:49 PMSathya M
04/05/2024, 1:49 PMRodney
04/05/2024, 1:52 PM<cfoutput query="myquery" group="name">
<cfoutput>#myquery.name#</cfoutput><br>
</cfoutput>Sathya M
04/05/2024, 1:54 PM