Something like:

<table>
<tr valign="top">
        <td>
                <cfloop query="qWinner">

                        #qWinner.name#

                        <cfif (qWinner.CurrentRow EQ Ceiling(
qWinner.RecordCount / 2))>
                                </td>
                                <td>
                        </cfif>
                </cfloop>
        </td>
</tr>
</table>
 

This will cut the list in half when outputting in a table. Of course you
could replace the Table with floating DIVs but this is easier to
visualize I think.


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Christopher Lavie [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 20, 2007 10:10 PM
To: CF-Newbie
Subject: ColdFusion Table Display Question

I'm sure this has been asked and answered a couple of times because I
cannot imagine that I am the only one who encountered this problem.

I have a query that pulls past winners of an award.  Is there any way in
ColdFusion to have it display like this in a 4 row by 2 column table:

2000 Winner        2004 Winner        
2001 Winner        2005 Winner
2002 Winner        2006 Winner
2003 Winner

Thanks in advance!

Chris





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2577
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to