Lucky Kitty wrote:
> Ahh.. figured out my problem.. I need to use currentRow.
instead of recordCount. Here's a great little page on Mod...
http://tutorial140.easycfm.com/
Nice explanation of the MOD operator, but the example is a
bit
cumbersome. I would simplify it thusly:
<table border=1>
<tr>
<cfoutput query=getFoo>
<td>#getFoo.currentRow#</td>
<cfif getFoo.currentRow MOD 4 EQ 0>
</tr>
<tr>
</cfif>
</cfoutput>
</tr>
</table>
Unless you are being very picky about spacing you can simple
close the
current row and start the next row inside the MOD if
statement.
Eliminates the need for an extra boolean variable, if
statement and else
clause.