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 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 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 Link to comment https://forums.phpfreaks.com/topic/181309-mysql-hierarchy/#findComment-956489 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.