3 column rows

by lokointhehouse2

HTML

<cfset steps = gettopic.recordcount / 3 + 1>
<cfparam name="start" type="numeric" default="1">
<cfparam name="step" type="numeric" default="#steps#">
<cfloop query="gettopic" startrow="#start#" endrow="#start + step-1#">
<table width = "100%" border="0" align="center" cellpadding="2" cellspacing= "2">
<tr>
	<td>&nbsp;</td>
   <cfoutput query="gettopic" startrow="#start#" maxrows="3">
        <td width="33&##37;">#gettopic.topic1#</td>
   </cfoutput>
   <cfset start = #start# + 3>
</tr>
</table>
</cfloop>