Hi,
i've got this little search engine where users can type in a keyword, in order to find a photograph.
The search engine searches through the description of the photographs (using MySQL) to see if there's a match, something like this:
$SQL_statement = "SELECT * FROM table WHERE description LIKE '%$keyword%' LIMIT " . $start . "," . $limit;
That works fine, BUT..
If a user searches for let's say: bathtub, he gets three matches, but if a user types this: bath tub, he gets nothing.
Is there a way to deal with this?, i mean, in this case, if i take out the space and combine the two words and search for that, it would work.
Or what about three words or more, like: big bath tub, or: big white bath tub.
thnx!
thefisherman