mort Posted June 18, 2006 Share Posted June 18, 2006 Hi allI need to make a script that will enable me too put my categories as subcategories under other categoriesmy category table in my DB has the following fields. cat_id, cat_name, parent_id. The parent_id is the cat_id of the category it is in.my question is, which would be the best way to do it, so it outputs say, the main category, then if a sub category exists, display it, and keep going until one doesnt existworking on it now and a little stuck on where to start rly Link to comment https://forums.phpfreaks.com/topic/12325-category-system/ Share on other sites More sharing options...
zq29 Posted June 18, 2006 Share Posted June 18, 2006 Do you mean you want an infinite amount of sub-categories within sub-categories? Link to comment https://forums.phpfreaks.com/topic/12325-category-system/#findComment-47099 Share on other sites More sharing options...
mort Posted June 18, 2006 Author Share Posted June 18, 2006 well i dont NEED infinite, but i need more than one level, and knowing how to do it infintley would be handy Link to comment https://forums.phpfreaks.com/topic/12325-category-system/#findComment-47110 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.