John: This really doesn't help too much. Could you include the source code from all of your files that are involved, that could help. --Greg ----- Original Message ----- From: "John Haigh" <[EMAIL PROTECTED]> To: "Fusebox" <[EMAIL PROTECTED]> Sent: Friday, January 05, 2001 5:32 PM Subject: simple categories and product list > > I am trying drill down to a selected product category and list all 2nd Level > Product categories for the selected 1st Level Product Category, plus view > all the products in each 2nd Level Product category. > > > So I have 3 categories on a page > > test1 > test2 > test3 <-- The user clicks the 3 category which is the primary key (catid) > with a value of 3. Also there is a fuseaction of viewproducts. > > The code for the above file (dsp_productcategories.cfm) is > > <cfoutput query="getproductcategories"> > <font face="arial" size="3"><a > href="index.cfm?fuseaction=viewproducts&catd=#catid#">#name#</a></font><br> > </cfoutput> > > Here is part of the index file for the 1st Level Product categories page: > > <cfcase value="viewproducts"> > <cfinclude template="url_validproduct.cfm"> > <cfinclude template="qry_getproducts.cfm"> > <cfinclude template="dsp_products.cfm"> > </cfcase> > > > > <cfdefaultcase> > <cfinclude template="qry_getproductcategories.cfm"> > <cfinclude template="dsp_productcategories.cfm"> > </cfdefaultcase> > </cfswitch> > > </cf_bodycontent> > > > > Then I should be able to view the 2nd Level Categories, but I am what seems > to be an endless loop where the browser simply keeps requesting. > > Please help. > > John Haigh > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
