Jump to content

DB structure to writing a forum script.


cooldude832

Recommended Posts

I'm looking into making my own forum script and I want some honest opinions on the backend sql table structure I have.

Table 1: Users pk: UserID

Table 2: Threads: pk: ThreadID included keys (UserID BoardID)

Table 3: Boards: pk: BoardID

Table 4: Post: pk: PostID included keys (UserID, ThreadID)

 

Then just apply basic pagination from there to display based on ThreadID/BoardID

Is this a good system, or will having all post in 1 table screw me up?

Link to comment
https://forums.phpfreaks.com/topic/64159-db-structure-to-writing-a-forum-script/
Share on other sites

I wrote a small and simple forum just sime time ago and basically my database structure was like yours, having board, thread, posts and users in different tables, with id referencing to the corresponding other. Guess u are ok with the structure.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.