Creating and sorting sub-categories

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
jescobar
Forum Newbie
Posts: 24
Joined: Mon Jun 06, 2005 4:14 am

Creating and sorting sub-categories

Post by jescobar »

I'm creating a news script, so far I've been successfull but I wanted to know if there was a tutorial or get some tips how to create categories and link them to sub-categories

i.e.

Category (by dates)
09/11/2006 (linked to sub-category below)

Sub-Category (the actual news items)
[List of news items for 09/11/2006]

Thanks for any tips!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

How does your system work? As much detail as possible would probably be best.
User avatar
jescobar
Forum Newbie
Posts: 24
Joined: Mon Jun 06, 2005 4:14 am

Post by jescobar »

Right now I don't have the categories set up, so when you pull up the admin page it just displays all the news sorted using 'id' ASC.

I would like to implement a system where I can get them grouped together (in categories) where all news items from the same date would be grouped.

The fields used are the following,

1. title
2. topicimage
3. news
4. poster
5. date

and when entered, create a category (on a different date) based on item #5 (date).
Post Reply