GetDotted Domains

Viewing Thread:
"Forum Databse Structure"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Thu 18/08/05 at 17:04
Regular
"Lisan al-Gaib"
Posts: 7,093
Like it says on the tin. I need to design a database structure for a web forum and get it right.

Any links?

Tutorials on basic database design will be ignored.
Fri 19/08/05 at 17:21
Regular
"with a blunt knife"
Posts: 456
No problem.
Fri 19/08/05 at 11:50
Regular
"Lisan al-Gaib"
Posts: 7,093
Cheers, that's pretty much what I worked out yesterday. The sticky boolean is something I missed, so that'll be put in. Cheers!
Fri 19/08/05 at 10:44
Regular
"with a blunt knife"
Posts: 456
Okay here's a basic design that I used for a forum:

Boards
{
BoardID
BoardName
BoardDescription
PostNo
*LastUserID
LastDateTime
}

Threads
{
ThreadID
*BoardID
ThreadName
Locked
Sticky
*StartUserID
StartDateTime
*LastUserID
LastDateTime
}

Posts
{
PostID
*ThreadID
*UserID
PostContents
PostDateTime
}

Users
{
UserID
UserName
Password
First Name
Surname
DOB
etc
}

Think I've got most of the important stuff.
The stuff in Italics is optional but would be used to speed stuff up a bit as it wouldn't be needed to be calculated on the fly.
Thu 18/08/05 at 19:31
Regular
"NULL"
Posts: 1,384
When I built a forum for my web site, I used one table for threads, and one for posts.

Each post is linked to a thread. I also cheated slightly to save effort by storing the last post date and last post author in the thread table - saves looking up in two tables.
Thu 18/08/05 at 18:47
Regular
"Lisan al-Gaib"
Posts: 7,093
*Sigh*

Tutorials I can get. I specifically needed a structure.

Thanks anyway.
Thu 18/08/05 at 17:24
Regular
Posts: 5,323
[URL]http://www.tutorialized.com/[/URL]

I'm pretty sure Grix was programming a forum, if you could get hold of him he could point you in the direction of some tuts.

[URL]http://www.spoono.com/[/URL] << I think thats the correct addy for a site with a tut.
Thu 18/08/05 at 17:04
Regular
"Lisan al-Gaib"
Posts: 7,093
Like it says on the tin. I need to design a database structure for a web forum and get it right.

Any links?

Tutorials on basic database design will be ignored.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Unrivalled services
Freeola has to be one of, if not the best, ISP around as the services they offer seem unrivalled.
Best Provider
The best provider I know of, never a problem, recommend highly
Paul

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.