$dosearch = mysql_query("SELECT * from search WHERE keywords LIKE '%$searchterms%'") or die(mysql_error());
Im writing a basic search for a site.
All I want, is for it to search the keywords column and fetch any rows where any of the posted keywords match.
The problem with the above, I have discovered is if someone enters multiple keywords, but those keywords dont appear next to each other in the database it doesnt work.
Also if you just enter a letter, it brings up everything in the database. Eugh. I thought I could fix THAT bit if I can enter a min number of characters that must match the like query, is that possible?
Clearly writing a search is not as simple as I envisioned. Any clues on where to look for more info?