954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?

Show Query Results in a 4-across table

0
By Donna Fontenot on Sep 20th, 2004 6:07 pm

If query is called getResults and your field name is called myField

To change to 2-across or 3-across, or whatever, just change the MOD 4 to 2 or 3 or whatever number you wish.

<table>
<tr>
<cfoutput query="getResults">
<td>#myField#</td>
<cfif getResults.CurrentRow MOD 4 IS 0>
</tr>
<tr>
</cfif>
</cfoutput>
</table>

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You