Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    table structure for creating a forum

    hey guys,

    I have written most the code for a basic forum, but i would like to introduce catagories into the forum and wondered someone could help me get my head around the mysql table structure needed.

    Any help much appreciated....

  • #2
    New to the CF scene
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    To my understanding so far i'm going to need three tables, these being:

    -categories

    -topics

    -replies

    right?

  • #3
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    You could do it that way(I think phpBB does) or you could use a categories tables and a posts tables. Just set the category id, a "original post" field to true if it's the first post. Then with the replies you would set the original post's id in another field.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •