Re: [PHP] preg_replce ' for use with mysql

2004-01-20 Thread CPT John W. Holmes
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

RE: [PHP] preg_replce ' for use with mysql

2004-01-20 Thread craig
> 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.

[PHP] preg_replce ' for use with mysql

2004-01-20 Thread Nirnimesh
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. Now, if the user