oh yeah, forgot that bit!
Duncan Cumming IT Manager http://www.alienationdesign.co.uk mailto:[EMAIL PROTECTED] Tel: 0141 575 9700 Fax: 0141 575 9600 Creative solutions in a technical world ---------------------------------------------------------------------- Get your domain names online from: http://www.alienationdomains.co.uk Reseller options available! ---------------------------------------------------------------------- ---------------------------------------------------------------------- Dave Phipps <[EMAIL PROTECTED] To: <[EMAIL PROTECTED]> cf.co.uk> cc: Subject: Re: [ cf-dev ] Javascript menus from query 02/25/03 04:54 PM Please respond to dev Great thanks, I had to add a cfset subcounter = subcounter + 1> at the bottom of the loop and then it works a treat. Cheers for the help. Dave At 15:24 2/25/2003 +0000, you wrote: >how about this: > ><cfset counter = 0> ><cfset subcounter = 0> > ><cfoutput> ><cfloop index="i" from="1" to="#foo.recordcount#"> > <cfif counter NEQ foo.section[i]> > <!--- incremented, so reset subcounter to 0 ---> > <cfset counter = foo.section[i]> > <cfset subcounter = 0> > </cfif> > dqm__subdesc#foo.section[i]#_#subcounter# = "#foo.pagetitle[i]#" ; ></cfloop> ></cfoutput> > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
