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

value from colmunlist

Status
Not open for further replies.

twcman

Programmer
Joined
Jun 28, 2001
Messages
284
Location
US
How can I make this work:

<cfloop index=&quot;i&quot; list=&quot;#testq.columnlist#&quot; delimiters=&quot;,&quot;>
<cfoutput>#i# = #Evaluate(tesq.i)#<BR></cfoutput>

</cfloop>

I am trying to display the name of a field and the value. I am having trouble figuring out how to display tesq.i.


thanks The only dumb questions are the ones that are never asked
 
Try:

[COLOR=666666]<!--- This will just return just the first record in the query --->[/color]
<cfset row = 1>
<cfloop list=&quot;#testq.columnlist#&quot; index=&quot;c&quot;>
<cfoutput>#c# = #testq
Code:
[
c
Code:
]
Code:
[
row
Code:
]
#[COLOR=000080]<BR>[/color]</cfoutput>
</cfloop>
[COLOR=000080]<BR>[/color][COLOR=000080]<BR>[/color]

[COLOR=666666]<!--- This will just return all Records from query --->[/color]
<cfloop query=&quot;testq&quot;>
<cfset row = testq.CurrentRow>
<cfloop list=&quot;#testq.columnlist#&quot; index=&quot;c&quot;>
<cfoutput>#c# = #testq
Code:
[
c
Code:
]
Code:
[
row
Code:
]
#[COLOR=000080]<BR>[/color]</cfoutput>
</cfloop>
[COLOR=000080]<BR>[/color][COLOR=000080]<BR>[/color]
</cfloop> - tleish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top