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 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2004
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question creating forums with categories :S

    ok one thing that i do not understand one bit is how to create a forum with categorys, i know you have to use primary keys etc but i dont know how the variable reads this and im all confused please cna some1 explain it in baby steps? thanx
    Last edited by aspdude2004; 05-04-2004 at 09:10 PM. Reason: Topic
    ...not bad for a thirteen year old

  • #2
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well here is the basics how I would go about it (Im doing the very basics here):

    Create a category table, eg:

    categoryId | categoryName

    Then create a forums table:

    forumId | forumName | forumDescription | forumInCategory


    And have forumInCategory relate to categoryId, so if categoryId = 1, all forums with the value forumInCategory = 1 would be in that category.

    Sorry for being so vague, but im a bit busy, and Im not 100% sure i have the right idea.

    (also, just a minor criticisim, your topic name could have been slighly more descriptive, would you be able to edit it a bit so it better describes your problem?)


  •  

    Posting Permissions

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