Jump to content

Kerzo

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Kerzo

  1. Your best bet is to have three tables: 'posts', 'tags' and 'post_tags'. The structure of the Posts table remains the same. Tags is comprised of tagID and tagName columns. Post_tags links the tags in the Tags table to the appropriate Post using foreign keys on ID and tagID. This means that a post can now have multiple tags connected with it, retrieving other posts with the same tags is a lot quicker and it can also be done in a single SQL statement.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.