I have a Microsoft SQL 2000 database and a table with column names Objective1, Objective2, Objective3, (etc.) and I want to loop through each of these columns in the output so that they display:
Code:
#Objective1#
#Objective2#
#Objective3#
(etc.)
Is there a way to loop through the name of the column and the number?
Something like this obviously won't work, but it's kind of what I'd like to do:
Code:
<cfloop index="x" from="1" to="3" step="1">
<p>#objective[x]#</p>
</cfloop>
Any ideas?
Thanks in advance for your time.