A
A
Anton Antonov2016-03-11 10:55:00
Database design
Anton Antonov, 2016-03-11 10:55:00

How to make a tag system??

Implemented a simple code: connecting to a database where id, title, text, date, author are stored. made adding, editing and deleting entries. Through the loop I display it all on the screen.
How can I make tags? Can you recommend any video or article?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Igor, 2016-03-11
@unitby

make another table with tags.
and then a many-to-many table that will link the table with articles to the table with tags

V
Viktor, 2016-03-11
@master2016

Think of tags as categories. You make a table of categories and link categories to an article through a third table. However, Igor wrote the same thing.

A
Andrey Tokmakov, 2017-03-27
@NPC

post
id, title, text, date, author
id, name
post_id, tag_id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question