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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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.