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

  • Home
  • SEARCH
  • 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 7916003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:38:49+00:00 2026-06-03T14:38:49+00:00

A. I store tags in a database which are user input. B. For views,

  • 0

A. I store tags in a database which are user input.

B. For views, a group of these tags are then fetched with a query and concatenated.

C. I iterated this format and print each tag in the view.

For part B I create a JSON array with the concatenation in the query. But now I’m thinking it might be worthwhile to pick an even more lightweight format than JSON. My reasoning is it would make it simpler to validate the user tags coming into the database.

If I were to choose one delimiter, say , to identify tokens would the only validation needed be disallowing this character for tags?

  • 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-06-03T14:38:50+00:00Added an answer on June 3, 2026 at 2:38 pm

    But now I’m thinking it might be worthwhile to pick an even more
    lightweight format than JSON.

    Why do you think so? More often than not, using JSON simplifies things a lot both on the frontend and the backend because you can do a json_decode in PHP and just an eval JSON.parse in Javascript and then your JSON data will be translated to native objects in the respective language which you can then manipulate easily. So I would recommend you stick to JSON.

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

Sidebar

Related Questions

This is what I normally do to store tags in a database: foreach ($tags
I store various user details in my MySQL database. Originally it was set up
I store labels/tags in my database (mockup below): labels: text:string //name of the label/tag
from this post What is the most efficient way to store tags in a
Good day! There are a lot of questions how to store tags in DB
I store objects of a custom data type in QStandardListItems. I recover these objects
I store file’s attributes (size, update time…) in database. So the problem is how
I'm using a generic system for reporting which takes data from a database view
I have two web forms which are filled in by the user. They contain
Current state .NET 4.0 Application (WPF) Database: SQLCE Tables (simplified): Documents, Tags, DocumentsTags [n:n]

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.