Hi Guys,
I have a problem that is driving me crazy.
I am trying to write a PHP query that returns matches, but also partial matches to a user entered query.
E.g (not full code, just snippets.
User enters 'blue widgets' into a form and the form sets $query = "blue widgets".
My current query goes something like;
SELECT * FROM table_name WHERE 1st_field LIKE $query
This is great as it will bring back exact matches, but how do I also get it to bring back things such as;
blue (on it's own)
widgets (on its own)
blue round widgets (contains both terms but not exact match.
If anyone could point me in the direction of the right info I would be extremely grateful.
Cheers
Paul