Page 1 of 1

Separating words and searching

Posted: Thu Aug 30, 2007 4:45 am
by kkonline
I have a table articles, in which i am storing tags (separated by commas)
example for an article tags are life,confidence,success . Now this all is stored as a string. I want to extract each tag and search the table for it's occurance that means next i want to search for life confidence and success in the table and display results.

Above is just an example the actual tags can be much longer and separated by comma

Posted: Thu Aug 30, 2007 4:49 am
by VladSun

Posted: Thu Aug 30, 2007 5:24 am
by s.dot
explode() on the commas in the string

Posted: Thu Aug 30, 2007 5:41 am
by onion2k
I wouldn't store tags like that.

Posted: Thu Aug 30, 2007 6:53 pm
by califdon
kkonline, you've posted essentially the same question in two different forums here. That's called cross-posting and is not looked upon favorably. Please read and follow the rules for posting in these forums. Thank you.

Posted: Thu Aug 30, 2007 7:37 pm
by John Cartwright
califdon wrote:kkonline, you've posted essentially the same question in two different forums here. That's called cross-posting and is not looked upon favorably. Please read and follow the rules for posting in these forums. Thank you.
Thanks for pointing this out.

Topic locked.