Link to home
Start Free TrialLog in
Avatar of jcorbin
jcorbin

asked on

Increment a variable?

I have a table thats 52 columns wide, I have 52 fields (w1-w52) that I need to display for each person, i need to do something like:


<tr>
<cfset k1 = 0>
<cfoutput query="grp1" >
   <cfset k1 = k1 + 1>
   <td><font size="-1">#grp1.w##k1#</font></td>
</cfoutput>
<tr>

Is that possible, I keep getting a "element W is undefined" error.

john
ASKER CERTIFIED SOLUTION
Avatar of danrosenthal
danrosenthal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jcorbin
jcorbin

ASKER

dood thats exactly what I wanted! thanks!
no problem