scraptoft
06-24-2006, 12:21 AM
HI
What I am trying to is build a navigation menu which will echo all the categories from my mysql database with the specificic subcategoires below them. So my navigation echos all Parent (categories) with their children (subcategories)
My database contains: id, category, subcategory.
I.E
Category
-Subcategory
I can query the database so it echos all categories, and then echos all subcategories but the problem I have is each category echos the same subcategory underneath it.
Cheers
What I am trying to is build a navigation menu which will echo all the categories from my mysql database with the specificic subcategoires below them. So my navigation echos all Parent (categories) with their children (subcategories)
My database contains: id, category, subcategory.
I.E
Category
-Subcategory
I can query the database so it echos all categories, and then echos all subcategories but the problem I have is each category echos the same subcategory underneath it.
Cheers