Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do you display results in 2 colums then make a new row

Status
Not open for further replies.

dunskii

Programmer
Sep 14, 2001
107
AU
Hey,

how do you display results in 2 colums then make a new row

cheers,
d
 
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=&quot;bar&quot;>
<td>#myValue#></td>
<cfif currentrow mod 2 eq 0>
</tr><tr>
</cfif>
</cfoutput>
</tr>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top