Jun 26, 2002 #1 dunskii Programmer Sep 14, 2001 107 AU Hey, how do you display results in 2 colums then make a new row cheers, d
Jun 26, 2002 #2 CFDude Programmer Nov 7, 2001 316 US There is a variable called currentrow that tells you which record the cfoutput is on, so for every 2 records, create a new table row. e.g <tr> <cfoutput query="bar"> <td>#myValue#></td> <cfif currentrow mod 2 eq 0> </tr><tr> </cfif> </cfoutput> </tr> Upvote 0 Downvote
There is a variable called currentrow that tells you which record the cfoutput is on, so for every 2 records, create a new table row. e.g <tr> <cfoutput query="bar"> <td>#myValue#></td> <cfif currentrow mod 2 eq 0> </tr><tr> </cfif> </cfoutput> </tr>