Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7520865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:08:29+00:00 2026-05-30T02:08:29+00:00

I am creating a forum for practice but I am stuck on how to

  • 0

I am creating a forum for practice but I am stuck on how to do the topics. Do I need a seperate topic table, and If yes why, cant I just check them in the posts table?

Also, do I record the topic id or the topic name, and if it is the Id, how do I switch them?

Thanks a lot, I am working in PHP

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:08:31+00:00Added an answer on May 30, 2026 at 2:08 am

    you have to create topics table separate with unique id this should be like this

    Topic_id  |   topic_name
    1         |   PHP
    2         |   Ajax
    
    
    Post_table
    id | topic_id | Post_Title | Post_Detail
    1  |  2       |  title     |   post detail text
    2  |  1       |  title     |   post detail text
    

    and when you are showing posts on pages so you have to do it in mysql_query

    Why we use separate table for topics because if 3 post related to topic php and 5 posts related to topic ajax so we can figure our actual data calculation. and best is this do it with separate tables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im creating forum like application and I have textbox where users can enter tags
I am creating a forum software. I want admins and mods to be able
I'm creating custom forum software for a site I'm building, which includes 2 tables
I've been thinking about creating a forum in PHP so I did a little
So , I am creating a forum using php, Now there's a report button
I'm creating a small forum. Attempting to run SElECT... JOIN... query too pick up
I'm creating a basic forum where every message contains the authors name, some text
I am creating a very simple forum as my first MVC project. My database
I am creating some tag functionality for a forum using linq2sql, and I have
In my Rails application I have a Forum with many Topics. From the Forum's,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.