how can i create a tagging system using php and mysql?

后端 未结 2 1481
孤城傲影
孤城傲影 2020-12-22 23:18

wondering how i can create a tagging system in php and with a mysql database, my initial thoughts were to create a row in the table where the articles are stored, named tags

2条回答
  •  被撕碎了的回忆
    2020-12-22 23:40

    tbl_articles has articleID, etc.

    tbl_tags has tagID, etc.

    tbl_taggedarticles has taggedArticleID, articleID, tagID

    SELECT articleID FROM tbl_taggedarticles WHERE tagID = "searchedID"
    

提交回复
热议问题