Hi I was going through this code of categories and subcategories. <BR><BR>http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=154 <BR><BR>But in my case my subcategory could be consisted in many category. Like a "student" could be a part of many "class". <BR>My table of "cat" has fields "cat" and etc. <BR>My table of subcats has a field say "subcat" and "cat" <BR>in this a database could have "john" as subcat and Math, Science, Geography, etc in Cat field <BR>Now in this situation, I tried the same code but the subcategory is diplayed under the category shown first eg. under Math only. <BR><BR>Iunderstand that this is a many-many relation and hence this code might not work for my case, can someone elaborate on this please<BR><BR>