My problem is this; I am having problems using sql to match parts of a query. For example I want a statement like this:
SELECT * FROM {table} WHERE {table}.title LIKE '%term%';
Where term is some search term and table is the table I am querying. This statement works fine in almost all cases. The problem occurs when the query term is longer than what is in the database. For example:
(assuming there is an entry in {table} with title="foobar")
SELECT * FROM {table} WHERE {table}.title LIKE '%foobars%';
The above will not match foobars = foobar because of the s.
What can I use to overcome this?
Thank you.