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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

output question

Status
Not open for further replies.

achai

MIS
May 23, 2000
71
US
if I want get result from database, three records a line.
like:
<tr><td>#1#</td><td>#2#</td><td>#3#</td></tr>
<tr><td>#4#</td><td>#5#</td><td>#6#</td></tr>

how do i write this? use cfloop?
thanks
[sig][/sig]
 
<table>
<tr>
<td>First Col</td><td>Second Col</td><td>Third Col</td>
</tr>
<cfoutput query=&quot;qGetResults&quot;>
<tr>
<td>#databasevalues#</td>
<cfif qGetResults.currentrow MOD 3 Is 0>
</tr>
</cfif>

</cfoutput>
</table>
</html>

Hope this works for u,

:)) Perichazhi [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top