User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 331,473 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,055 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Sep 20th, 2004
Views: 5,260
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.
coldfusion Syntax
  1. <table>
  2. <tr>
  3. <cfoutput query="getResults">
  4. <td>#myField#</td>
  5. <cfif getResults.CurrentRow MOD 4 IS 0>
  6. </tr>
  7. <tr>
  8. </cfif>
  9. </cfoutput>
  10. </table>
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 8:42 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC