Show Query Results in a 4-across table

dazzlindonna dazzlindonna is offline Offline Sep 20th, 2004, 9:07 am |
0
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.
Quick reply to this message  
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>

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC