How should I go about adding slashes to only single quotes and ignoring double quotes?

Posted by atwellpub on Stack Overflow See other posts from Stack Overflow or by atwellpub
Published on 2010-05-02T18:02:00Z Indexed on 2010/05/02 18:07 UTC
Read the original article Hit count: 137

Filed under:
|
|

How should I go about adding slashes to only single quotes and ignoring double quotes? I am using php. I would only like to escape single quotes to prevent my php mysql queries from breaking.

Thank you!

© Stack Overflow or respective owner

Related posts about escaping

Related posts about php