SQL uses single quotes, so quote your LIKE expression using single quotes as well.
I recommend you use placeholders instead of interpolating things. It relieves you of the headache of having to properly quote stuff.
In reply to Re: Escaping quotes - can't quite get it!
by Corion
in thread Escaping quotes - can't quite get it!
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |