hi, i am writing this little article manager thing. I have this keywords thing where the article would be displayed with a thing on the side saying "Related articles are....." and show list of related articles to the article
keywords are stored in a database, separated by coma.. say "LAN, LCD, party"
every article would have this info...now how can i write a quierie to do this related article thing
SELECT article_type, article_cat_name, article_title, article_image FROM articles WHERE article_keywords IN ('" . $article_keywords . "') LIMIT 10
i have this, but the problem is it would see article_keywords as only "1 word" instead of list of stuff comparing to the array of keywords
the other thing i can do is have the array exploaded and do sumthing like
SELECT article_type, article_cat_name, article_title, article_image FROM articles WHERE article_keywords LIKE '%$article_keywords[0]%' OR article_keywords LIKE '%$article_keywords[1]%' LIMIT 10
and so on but say there like 6 keywords wouldnt the quierie be a bit slow???
just wondering if any of you know how can i do this with the least stress on the server...thank you