Jump to content

Archived

This topic is now archived and is closed to further replies.

mort

Category system

Recommended Posts

Hi all

I need to make a script that will enable me too put my categories as subcategories under other categories

my 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 exist

working on it now and a little stuck on where to start rly

Share this post


Link to post
Share on other sites
Do you mean you want an infinite amount of sub-categories within sub-categories?

Share this post


Link to post
Share on other sites
well i dont NEED infinite, but i need more than one level, and knowing how to do it infintley would be handy

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.