I'm looking for the most effective way to do a search with select with multiple terms in mysql and php. A basic select for a single key word in mysql can look like this;
select * from <table> where (Message like '%term%' or Subject like '%term%');
Works fine for a single term. For multiple terms, the suggestions that I've seen is that each word that's posted from a form should be sent to an array and the contents should be processed with a For loop. I'm wondering if there's a way to do it on the mysql side? My suspicion is that there isn't, but it doesn't hurt to ask.