in reply to Re: DBI search for forward slashin thread DBI search for forward slash
I can find in this table any string with one slash at the begining, but not in the middle of the string.
But = only compares for identity. You want LIKE, and you want the % placeholder:
SELECT * FROM `texts` WHERE `string` LIKE '%/a/b/c%'
... or, with placeholders:
SELECT * FROM `texts` WHERE `string` LIKE ?
(and then in the ->execute() call, add the placeholders to your search string)