944,107 Members | Top Members by Rank

Ad:
0

Show Query Results in a 4-across table

by on Sep 20th, 2004
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 Code Snippet (Toggle Plain Text)
  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>
Message:
Previous Thread in ColdFusion Forum Timeline: CF 6.1 problems..Junior Programmer - NEED HELP!
Next Thread in ColdFusion Forum Timeline: how to get pass url variables from one page to another page with out knowing them?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC