jquery - How to get mysql search query to select all row contains url variables? -
i trying search query takes url variables , match against table1. issue if don't have exact name in search field not return search value.
example if search word "basket" not return value if search word "basketball" basketball 1 of table1.column2 value.
select * table1 join table2 on table1.colname = table2.colname table1.colname2 %s
have tried having clause instead of clause in select statement ? try it
select * table1 join table2 on table1.colname = table2.colname having table1.colname2 '%s%'
Comments
Post a Comment