Hi,
I have not given it that much thought to really elaborate on it. But something like..
Select * from table WHERE content LIKE '%word1% OR '%word2%' OR '%word3%'
Then, you loop through the results, and each result you search fo each of the keywords.
Check there must be something like str_match or something to find a substring in a string, or else you could use strpos: If strpos > 0 you have a mathc for the string.. Each match you get, you record, and then you order them based on the matches/.
J.