From: "Nirnimesh" <[EMAIL PROTECTED]>
> How do I replace all ' with \' in php so that I'm able to use the mysql
> queries. Note that simply using: preg_replace("/'/", "\'", -1) is not what
> I'm looking for, for this does not help me. Let's say I take the address
> from a form and want to enter it
> How do I replace all ' with \' in php so that I'm able to use
> the mysql
> queries. Note that simply using: preg_replace("/'/", "\'",
> -1) is not what
> I'm looking for, for this does not help me. Let's say I take
> the address
> from a form and want to enter it into the database as it is.
2 matches
Mail list logo