Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.