If you know how many columns (say 3), use the "MOD" function to check
against the total number of thumbnails vs. the current thumbnail number...

Say you have 9 thumbnails - so you'll want three in each of three columns.
Assuming you did a CFQUERY to grab thumbnail image filenames, and you're
looping on that... at the end of each thumbnail display,

<CFIF (thumbnailquery.recordcount MOD 3 EQ currentrow) AND (currentrow IS
NOT thumbnailquery.recordcount)>  (triggers when currentrow = 3, 6 but NOT
9)
(close your table data cell, and open a new one)
</CFIF>

--Scott

----- Original Message -----
From: "ibtoad" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, February 21, 2001 3:36 PM
Subject: Multiple columns???


> How can I set an output query to display thumbnails in more than one
column
> of a table?  I would like 2 or 3 columns.
>
> Thanks,
> Rich
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to