<table>
<cfoutput query="myquery">
<cfif myquery.currentrow mod 3 eq 1>
<tr>
</cfif>
<td>#myquery.myfield#</td>
<cfif myquery.currentrow mod 3 eq 0>
</tr>
</cfif>
</cfoutput>
</table>
----- Original Message -----
From: "SMR" <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 7:54 AM
Subject: Formatting Column Output
> Here is my code:
> <table>
> <cfloop query="getList">
>
> <cfoutput query="getSystems">
> <tr>
> <td>#system#</td><td><a href=""> > </tr>
>
> </cfoutput>
>
> </cfloop>
> </table>
>
>
> I want to format this so I have 3 seperate columns on the screen. example:
>
>
> <tr>
> <td>#system#</td><td><a href=""> > <td>#system#</td><td><a href=""> > <td>#system#</td><td><a href=""> >
> </tr>
>
> Can not get this to work using the <cfif getsystems.currentrow mod 3 IS 0>
statement. I've tried putting the <cfif> and <tr></tr> tags in every
combination I can think of but it won't output more then one column.
>
> Any suggestions?
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
