I've done this before, but I can't remember where for the life of me.

This is off the cuff, but I think it will work.

<cfoutput query="stuff">
<cfif mod(currentrow, 2)><tr></cfif>
<td>stuff</td>
<cfif not mod(currentrow, 2)></tr></cfif>
</cfoutput>

<cfif mod(stuff.recordcount, 2)>
<td>&nbsp;</td></tr>
</cfif>


--  Ben Doom
    Programmer & General Lackey
    Moonbow Software, Inc

: -----Original Message-----
: From: Jeff [mailto:[EMAIL PROTECTED]
: Sent: Friday, June 06, 2003 11:24 AM
: To: CF-Talk
: Subject: Using mod to display two across in a table...
:
:
: I think I'm having a Friday brain fart.
:
: I want to output photos whose name is stored in a table and I want them to
: display two across, like so:
:
: Photo1 | Photo2
: Photo3 | Photo4
: Photo5 |
:
: Etc...
:
: And for some reason, I'm totally blanking on how to accomplish it...
:
: I know it's CurrentRow and modulus, but doggone it...I'm having no luck...
:
: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to