Jump to content

Archived

This topic is now archived and is closed to further replies.

skeen

Help needed: returning tags stored in the DB

Recommended Posts

Hi people.

I have a users table, and each user has a tag field that stores tags (strings of text) like so:

php,mysql,phpfreaks

How do I return results where the tag field contains one of the tags?

Share this post


Link to post
Share on other sites
Well, depending on the nature of the tags, you might want to have a FULLTEXT index that spans all 3 columns, as opposed to having to write a query with lots of LIKE '%aaa%' OR ....

Share this post


Link to post
Share on other sites

×

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.