Posted by correo on 12/28/05 12:50
Hello,
I've built a search engine that queries a MySQL database. However,
if I enter "foo bar", the engine will search for that phrase exactly,
and will not find "bar foo" nor "foo something bar". How do you
separate words so that the engine finds them individually? I'm thinking
something like
$tokenized = strtok($query, " ")
mysql_query(" SELECT ... FROM ...
while(...){ WHERE ...}
")
but I just can't figure it out. Any help is much appreciated. Many
thanks in advance.
Diego
[Back to original message]
|