- Joined
- Dec 21, 2007
- Messages
- 1,040
- Reaction score
- 127
Hey there.
Since I got some free time in hands, I decided to practise PHP and MySQL once more and so I decided to make a forum from scratch, but I'm having a bit of a problem trying to figure out my structure, relating the Categories and SubForums.
Example Structure:
- Category 1
- Forum 1
- Forum 2
- Category 2
- Forum 3
- Forum 4
What I'm not being able to structure inside my head is how am I going to display the different forums inside their own categories. My database structure is as follows:
table: forum_categories
id, category_name, category_rights, category_status
table: forum_category_forums
id, forum_name, forum_description, category_id, category_position, forum_icon, forum_rights
I've tried multiple loops but I still ain't achieving the results I'm looking for. (Damn it, too much time without practising!)
I'm not asking for any code examples, but it'd be nice if you would supply. I'm just looking to clarify myself on how am I going to display the forum with the structure I've planned. Any ideas?
Thanks.
Since I got some free time in hands, I decided to practise PHP and MySQL once more and so I decided to make a forum from scratch, but I'm having a bit of a problem trying to figure out my structure, relating the Categories and SubForums.
Example Structure:
- Category 1
- Forum 1
- Forum 2
- Category 2
- Forum 3
- Forum 4
What I'm not being able to structure inside my head is how am I going to display the different forums inside their own categories. My database structure is as follows:
table: forum_categories
id, category_name, category_rights, category_status
table: forum_category_forums
id, forum_name, forum_description, category_id, category_position, forum_icon, forum_rights
I've tried multiple loops but I still ain't achieving the results I'm looking for. (Damn it, too much time without practising!)
I'm not asking for any code examples, but it'd be nice if you would supply. I'm just looking to clarify myself on how am I going to display the forum with the structure I've planned. Any ideas?
Thanks.