Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: Translation of Variable Output From CFQUERY

$
0
0

Of course if you're looping over your query using <cfoutput query="foo">  then you don't need to specify the [currentrow] attribute too (although there's no harm in doing so, it's just overkill).

 

Also please don't use evaluate(), it's not generally considered good practice these days.

 

You can simply do:

 

<cfoutput query="cfqGetItems">

   #cfgGetItems[field1]#<br>

</cfoutput>

 

Using the square brackets notation also lets you deal with things like where your query returns column names with spaces. 


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>