as we know it, MySQL can get results by LIKE and LIMIT, but my problem is how we can search DB for some words of a string one by one and show result without duplication?
my means is for example when user make search for "a book for php and mysql" we send query in For loop, word to word to DB by:
SELECT * FROM table WHERE title LIKE %i% LIMIT 5
but this code just show duplicated result, indeed for each word it shows 5 results then for another word another 5 result and... i need to search db for words one by one, but at last show just 5 match results without duplication! sorry for my poor english:)