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> </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]
- RE: CF Forum 2000 Adam Wayne Lehman
- Re: CF Forum 2000 Jochem van Dieten
- Sort Order Best Practice Reque... Les Mizzell
- Re: Sort Order Best Practice R... Deanna Schneider
- Re: Sort Order Best Practice R... Les Mizzell
- SQL Server Indexing of tables help Rafael Bleiweiss
- RE: Goofy Rows Questions Eric Hoffman
- RE: Goofy Rows Questions Eric Hoffman
- RE: Goofy Rows Questions Tony Weeg
- RE: Goofy Rows Questions Charlie Griefer
- Pascal Peters