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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<CFOUTPUT> in <CFSCRIPT> 1

Status
Not open for further replies.

KevinFSI

Programmer
Nov 17, 2000
582
US
You know, I pretty much do everything in <CFSCRIPT> these days. All my CFIF, CFSWITCH, CFLOOP, CFSET, etc... are inside CFSCRIPT tags. It's just personal preference, but I can't seem to figure out a way to say
Code:
<CFOUTPUT QUERY=&quot;myQuery&quot;>...</CFOUTPUT>
in a <CFSCRIPT> tag.

Can it be done? Kevin
slanek@ssd.fsi.com
 
That's not quite what I'm asking. That only works if I've placed <CFOUTPUT> tags OUTSIDE the <CFSCRIPT>. I'm wanting to know if I can output a query from INSIDE the <CFSCRIPT>. Kevin
slanek@ssd.fsi.com
 
Simply treat the query as an Array of Structures:

<CFSCRIPT>
for(i=1; i LTE qQueryName.RecordCount; i=i+1){
WriteOutput(qQueryName.ColumnName
Code:
[
i
Code:
]
&
&quot;<BR>&quot;);
}
</CFSCRIPT> - tleish
 
Hey, there you go. That's exactly what I was looking for! Kevin
slanek@ssd.fsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top