| | |
Show Query Results in a 4-across table
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
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.
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>
Similar Threads
- show results on same page (PHP)
- query a xml file and show results in windows form (C++)
- Trying to show SQL query results in Excel sheet (Legacy and Other Languages)
- Displaying query results dynamically in table (PHP)
- Query in VBA does not pull same results as normal query (MS Access and FileMaker Pro)
| Thread Tools | Search this Thread |



