Jason Webster wrote:
>
> Won't this escape the wildcard character, and offer it as a literal?
>
Nope. The quote() function only quotes things that may terminate the string
literal, such as ', ", \0, etc.
You can try it yourself to be sure:
print $db->quote("%some'stuff%") . "\n";
// Output: '%some\'stuff%'
Regards,
Bill Karwin
--
View this message in context:
http://www.nabble.com/Using-quote%28%29-method-in-LIKE-statements-tp19113687p19114415.html
Sent from the Zend Framework mailing list archive at Nabble.com.
- [fw-general] Using quote() method in LIKE statements David Di Biase
- Re: [fw-general] Using quote() method in LIKE statemen... Bill Karwin
- Re: [fw-general] Using quote() method in LIKE statemen... enportugal
- Re: [fw-general] Using quote() method in LIKE stat... David Di Biase
- Re: [fw-general] Using quote() method in LIKE stat... Jason Webster
- Re: [fw-general] Using quote() method in LIKE ... Bill Karwin
- Re: [fw-general] Using quote() method in L... Jason Webster
- Re: [fw-general] Using quote() method... Bill Karwin
