Some things just are not worth asking :) Doug B.
----- Original Message ----- From: "Doug Brown" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Friday, January 05, 2007 5:35 PM Subject: Question on CFC's > I am not overly familiar with CFC's and need a little help with something. > > I have two tables that hold categories and sub categories. > > [categories] > > categoryID > categoryName > > [sub_categories] > SCategoryID > categoryID > SCategoryName > > > I have a query pulling the main categories, and now I need to pull all the sub categories that are related to the main ones. What I would like to do is have a page like so dispursed into 3 or 4 seperate colums > > MainCategory > sub,sub,sub,sub, > sub,sub,sub,sub > > > Here is where I am getting my main cats > > <CFFUNCTION name="InitGetAllMCats" access="public" returntype="query" output="no" hint="Get All Main Categories"> > <CFSET var GetAllMCats = ""> > <CFQUERY name="GetAllMCats" datasource="#APPLICATION.DB#" username="#APPLICATION.UN#" password="#APPLICATION.PW#"> > SELECT CategoryID,CategoryName,CategoryImage,CatStatus,pricePerAd > FROM #APPLICATION.DBPRE#Categories > ORDER BY CatPos ASC > </CFQUERY> > <CFRETURN GetAllMCats> > </CFFUNCTION> > > > > > Doug B. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265898 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

