except that he's grouping his output.  that was the original issue.

currentrow is no longer sequential :)


On Thu, 3 Mar 2005 07:22:59 -0500, Pete Ruckelshaus
<[EMAIL PROTECTED]> wrote:
> 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>
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197235
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

Reply via email to