substitute x by whatever number of columns you want


<cfset x = 2>
<cfset emptyCells = (x - qTest.recordCount MOD x) MOD x>
<table>
<cfloop query="qTest">
<cfif qTest.currentRow MOD x IS 1>
<tr>
</cfif>
<td>#qTest.field#</td>
<cfif qTest.currentRow MOD x IS 0>
</tr>
</cfif>
</cfloop>
<cfif emptyCells>
<cfloop index="i" from="1" to="#emptyCells#">
  <td>&nbsp;</td>
</cfloop>
</tr>
</cfif>
</table>


Pascal

-----Oorspronkelijk bericht-----
Van: Eric Hoffman [mailto:[EMAIL PROTECTED]
Verzonden: vr 17/10/2003 6:37
Aan: CF-Talk
CC:
Onderwerp: RE: Goofy Rows Questions


I did a hack and made it work, good enough for now, thanks all.


Eric  


  _____  

From: Eric Hoffman [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 11:29 PM
To: CF-Talk

Tony, thanks for the pointer...

Wow...am I out of it...

It is breaking at row 1, 3, and 5 instead of 2 4 and 6.   Ideas?

Eric




[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to