electricphp
Programmer
I have this query:
"SELECT * FROM ads WHERE cats LIKE'%$find%'"
lets say that $find is "Wines and Cheeses"
for some reason, it is selecting records that only have "wines" in them, so it will select "wines and beers"
How can I change this query so it only selects records that have the full string "Wines and Cheeses" in them
"SELECT * FROM ads WHERE cats LIKE'%$find%'"
lets say that $find is "Wines and Cheeses"
for some reason, it is selecting records that only have "wines" in them, so it will select "wines and beers"
How can I change this query so it only selects records that have the full string "Wines and Cheeses" in them