You could use [queryname].currentrow MOD 3 EQ 0 instead of the ctr variable. Slightly more elegant (IMO) and slightly easier.
Pete On Thu, 03 Mar 2005 06:28:35 -0400, Will The Game <[EMAIL PROTECTED]> wrote: > Here's my final code that worked in case it may help someone else in the > future. Is nothing fancy, but here it is anyway! > > Thanks Charlie and Ade, > Will > > <cfset ctr=0> > <table width="90%" align="left" cellpadding="6"> > <tr> > <cfoutput query="getprodsbycategory" group="prodmodelcode"> > <cfset ctr=ctr + 1> > <td height="90" bgcolor="##000000"> > <div align="center"><a > href="itemdetail.cfm?MODEL=#getprodsbycategory.prodmodelcode#"><img > src="productimages/#getprodsbycategory.imagename#" alt="Click for details" > width="160" height="160" border="0" /></a> > <br /> > <a > href="itemdetail.cfm?MODEL=#getprodsbycategory.prodmodelcode#">#getprodsbycategory.prodmodeltitle#</a> > <br /> > <span style="font-family: Verdana, > Arial, Helvetica, sans-serif; font-size: 10px; > color:##F7F7F7">$<strong>#getprodsbycategory.prodsellprice#</strong></span> > </div> > </td> > <cfif ctr MOD 3 EQ 0> > </tr><tr> > </cfif> > </cfoutput> > </table> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197234 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

