Jump to content

Recommended Posts

Hi, I am writing a blogging system. I want to have the ability to add tags to each post. I know this has been done before but I cant seem to find any reliable info on how to set it up.

 

This is my problem.

I need to keep the computation low (as much as possible) on the server. I have considered having a database cell populated with an array of tags. but that seems way too intense when searching for specific tags. Is that the only way (stupid question), is there a better way to search so I can index each tag?

Link to comment
https://forums.phpfreaks.com/topic/197307-organizing-a-tag-system-for-a-blog/
Share on other sites

  • 2 weeks later...

Hi, I am writing a blogging system. I want to have the ability to add tags to each post. I know this has been done before but I cant seem to find any reliable info on how to set it up.

 

This is my problem.

I need to keep the computation low (as much as possible) on the server. I have considered having a database cell populated with an array of tags. but that seems way too intense when searching for specific tags. Is that the only way (stupid question), is there a better way to search so I can index each tag?

 

You may want to look at the provided FULLTEXT fields MySQL provides:

http://dev.mysql.com/doc/refman/5.1/en/fulltext-search.html

 

It shouldn't be too hard to implement with when ALTERing the table:

http://www.pui.ch/phred/archives/2005/05/tags-with-mysql-fulltext.html

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.