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 6191801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:49:51+00:00 2026-05-24T02:49:51+00:00

Stackoverflow allows a poster to make tags for their questions. Now say I have

  • 0

Stackoverflow allows a poster to make tags for their questions.

Now say I have some articles and want to give some keyword tags to each. I’m using PHP and mysql for this.

What is the best database structure to use when doing this?

Will a limit of 5 keywords per article and unlimited keywords cases require different database structures?

  • 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-24T02:49:52+00:00Added an answer on May 24, 2026 at 2:49 am

    It is best to normalize your database. You won’t find better.

    articles:
    article_id, blablabla

    tags:
    tag_id, title

    tags_to_articles:
    article_id,tag_id

    In any case it is best to normalize your databases. Always. Don’t worry if you will change your mind and do the limit of tags. Above structure will be always the best because of smallest amount of memory to use.

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

Sidebar

Related Questions

I want a regex for URL like this -- https://stackoverflow.com/ with allows only backslash
I have a website that allows it's members to make posts. To make the
For example, here on stack overflow the URL https://stackoverflow.com/questions/tagged/javascript+php will give you all questions
i have a wordpress blog and want to give people the same user experience
In stackoverflow, and some other websites where people submits questions or posts, there is
I have a form that allows users to paste input, like on StackOverflow. But
StackOverflow, you're my only hope! I am unfortunate enough to have inherited an ASP.NET
StackOverflow lets you search for posts by tags, and lets you filter by an
In StackOverflow podcast no. 19 , Joe describe Fogcreek's decision to have one database
I am aware of this question: https://stackoverflow.com/questions/428691/how-to-encourage-implementation-of-tdd In my team, we write a lot

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.