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

writing row output to txt file

Status
Not open for further replies.

JohnandSwifty

Technical User
May 31, 2005
192
GB
Hi,

I need to write the rows of a query to a text file. I have two vars (header and matrix) which i concatenate into body (body being the output value). My problem is that i cant run a loop inside a cfset tag... any ideas?

thanks
 
can I see some code? You can build up a variable and use cffile to write it to a file.
 
Hi,

I was having trouble outputting rows (cfloop) inside a cfset tag. In the end I went for

<cfparam name="matrix" default="">
<cfoutput query="Session.NewQuoteItems">
<cfset matrix = matrix &
<!--- Rows Here --->
>
</cfoutput>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top