I'm currently working on a content manager project in PHP/MySQL. I have implemented the ability to categorize articles by category and type of article, but I want to expand on this and give more flexibility in organizing the site structure.
Ultimately I want a thread based content system, which gives the ability to define categories to whatever depth you want, and also keep track of which articles belong in which category and sub-category.
I've had a hard time finding much info on thread-based web programming, and I'm struggling to come up with a good model for both my articles db and my categories db.
Should I define my categories to have a parent-category field, and then use PHP to sort everything out during process time? Would it be smarter to define all the children as well, to avoid searching every category for its parent, or would this make it tougher by having to update every category entry when adding new ones?
Any links, ideas, etc. would be very very helpful now. I'm relatively new to PHP and an amateur programmer as it is, so I want to have a good concept of how this system should function before I start laying out code.
Thanks in advance
Ultimately I want a thread based content system, which gives the ability to define categories to whatever depth you want, and also keep track of which articles belong in which category and sub-category.
I've had a hard time finding much info on thread-based web programming, and I'm struggling to come up with a good model for both my articles db and my categories db.
Should I define my categories to have a parent-category field, and then use PHP to sort everything out during process time? Would it be smarter to define all the children as well, to avoid searching every category for its parent, or would this make it tougher by having to update every category entry when adding new ones?
Any links, ideas, etc. would be very very helpful now. I'm relatively new to PHP and an amateur programmer as it is, so I want to have a good concept of how this system should function before I start laying out code.
Thanks in advance