|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Forums Database Structure
I've been thinking about creating basic forums attached with my website ever since I started it, and I think i'm finally going to start the project. I have a basic idea of how I want to set them up, but my main concern is the database structure.
I could have it create a seperate table for each sub-forum, or I could have one huge table with an ID column to fetch the posts from that table. Either would work...but what would you suggest?
__________________
www.xoise.com - www.ourfreegames.com - www.g1games.com - www.randomtools.net - www.xenocide-rpg.com |
|
#2
|
|||
|
|||
|
You should visit hotscripts.com or aspin.com and download a few of the existing forum apps, and look over the db structures used. Most are pretty similar.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
||||
|
||||
|
I would go with more tables, less data in each. basic structure I would go with:
1. Users: ID, Name, ... 2. Forums: ID, Name, ... (more details like forum description) 3. Threads: ID, Name (title of thread), Forum, ... (no post data!) 4. Posts: ID, User, Thread, Contents, TimePosted, ...
look in existing forums as Doug suggested instead of re-inventing the wheel. ![]() |
|
#4
|
||||
|
||||
|
As doug said i would download a couple of free ones that work well and see how their databases are structured. phpBB is free and i have somewhere the sql file of IPB before it was charged for if you want that it could help you. Just PM me if you want it.
RF
__________________
|
|
#5
|
||||
|
||||
|
Thanks for your inputs guys. It's all much appreciated.
I'm goin to bed (next post i make is 1500). Not much these days, but considering i only drop by to help people out whenever i have free time, that's good ![]() |
![]() |
| Viewing: ASP Free Forums > Other > ASP Free Lounge > Forums Database Structure |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|