I think you meant:
<cfloop query="myQuery">
<if currentrow MOD 2>
all row one data
<cfelse>
all row two data (or is that backwards? ;)
</cfif>
</cfloop>
On 4/7/06, Coldfusion <[EMAIL PROTECTED]> wrote:
>
> <CFOUTPUT QUERY="myQuery ">
> <CFIF myQuery.recordcount MOD 2>
> <!--- Display all elements for 2 column --->
> <CFELSE>
> <!--- Display all elements for 1 column --->
> </CFIF>
> </CFOUTPUT>
>
>
> -----Original Message-----
> From: Johnny Le [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 06, 2006 10:56 PM
> To: CF-Talk
> Subject: How to format the print view like a phone book?
>
> Hi,
>
> I am trying to format a 2-column page to make a pdf print version. The
> problem is that if I use a 2-column table, then first record would display
> in the first column and the second record would display in the second
> column. Is there a way to display it so it would run to the end of the
> page
> on the first column first and then continue on the second column and then
> continue on the next page? I am using CFMX 7. Is there a custom or
> something to make this easier?
>
> Johnny
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237215
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54