webbhelp Posted November 12, 2009 Share Posted November 12, 2009 Hi! I am wonder how to create like a adminpanel who can create categories and subcategories. The admin will create subcategories to subcategories you know... like a hierarchy. It never ends the admin can create jhow many subcategoriers to the subcategories: cat1 subcat1 subcat1 subcat2 subcat 2 subcat 3 subcat4 subcat5 You see, the admin can create subcats to subcats... My question is... how can create this application? Thanks //WebbHelp Quote Link to comment https://forums.phpfreaks.com/topic/181309-mysql-hierarchy/ Share on other sites More sharing options...
mikesta707 Posted November 12, 2009 Share Posted November 12, 2009 create a table of categories, and have a column that holds the parent for that category (default it to NULL if you want) thats How I would do it Quote Link to comment https://forums.phpfreaks.com/topic/181309-mysql-hierarchy/#findComment-956466 Share on other sites More sharing options...
Mchl Posted November 12, 2009 Share Posted November 12, 2009 See this presentation for comparision of different methods Quote Link to comment https://forums.phpfreaks.com/topic/181309-mysql-hierarchy/#findComment-956489 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.