- Joined
- Jan 19, 2007
- Posts
- 2,207
- Reaction score
- 47
Is it possible to select a row with name = "bob's chocolates" when the variable you have is "bobs-chocolates"
my issue isn't the hyphen (which I can do the preg_replace() )
but is the ' which has already been stripped and I don't know where to insert it to get a 100% match ?
I know that when I'm selecting all names that begin with the same letter I use LIKE:
SELECT * FROM table WHERE name LIKE '$name%'
Is there a similar query that will negate apostrophes or other characters?
my issue isn't the hyphen (which I can do the preg_replace() )
but is the ' which has already been stripped and I don't know where to insert it to get a 100% match ?
I know that when I'm selecting all names that begin with the same letter I use LIKE:
SELECT * FROM table WHERE name LIKE '$name%'
Is there a similar query that will negate apostrophes or other characters?