/    Sign up×
Community /Pin to ProfileBookmark

tagging system for knowledge base

Good morning/evening/afternoon everyone (depending on where in the world you are).
I’m building a new knowledge base for my Customer service desk and I was going to implement a tagging system.
I’m just wondering how does the likes of flickr work their tags?
I’m fairly capable of programming in PHP and creating the mySQL database but I was just wondering if anyone can tell me how the tags actually work? Obviously I would need a field in the Knowledge Procedure table which holds all of the tags relevant to each KP and then to search for tags as key words I could use some sql like SELECT * FROM knowlege_procedures WHERE tag LIKE $keyword (Very rough).
Any thoughts on this?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@ellisglAug 01.2007 — You could do a couple things.

You can have seperate fields - one for each tag that is a boolean for each record. But you would have to predefine your tags have a look up table for valid keywords and create a sql statment based around the tags and how many tags you chose.

Or you can have dynamic tags in a single field just have an enclosure - ie |monkey|

SELECT * FROM table WHERE tag LIKE '%|$tag|%'
Copy linkTweet thisAlerts:
@DoppleauthorAug 02.2007 — I think the seperate look up table is the way I'll have to go.

I'm also going to utilise the ful-text search feature of mysql but although good for searching, it won't help with catogorising.

Thanks for your views?
×

Success!

Help @Dopple spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...