Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 4:20 PM, Stuart Dallas wrote: > On 18 Mar 2013, at 15:08, Matijn Woudt wrote: > > > On Mon, Mar 18, 2013 at 2:19 PM, Sebastian Krebs >wrote: > > > >> 2013/3/18 Ken Robinson > >> > >>> > >>> > >>> On 18.03.2013 09:10, Norah Jones wrote: > >>> > I am having an string

RE: [PHP] significance of escape character in string in PHP - MySQL

2013-03-18 Thread Arno Kuhl
There's no need for it to be a flame war. The mysql extension is officially not recommended for writing new code, so anyone using it should be informed of this fact. I think it should consist of more than "don't use that," but at the very least that should cause the questioner to want to know why.

Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Stuart Dallas
On 18 Mar 2013, at 15:08, Matijn Woudt wrote: > On Mon, Mar 18, 2013 at 2:19 PM, Sebastian Krebs wrote: > >> 2013/3/18 Ken Robinson >> >>> >>> >>> On 18.03.2013 09:10, Norah Jones wrote: >>> I am having an string which was have few ' (single quote) and few " (double quotes) and wa

Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Matijn Woudt
On Mon, Mar 18, 2013 at 2:19 PM, Sebastian Krebs wrote: > 2013/3/18 Ken Robinson > > > > > > > On 18.03.2013 09:10, Norah Jones wrote: > > > >> I am having an string which was have few ' (single quote) and few " > >> (double quotes) and was not able to insert into the mysql database. I > >> have

Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Sebastian Krebs
2013/3/18 Ken Robinson > > > On 18.03.2013 09:10, Norah Jones wrote: > >> I am having an string which was have few ' (single quote) and few " >> (double quotes) and was not able to insert into the mysql database. I >> have replaced them with \' and \" and everything is fine. >> Though this are fi

Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Ken Robinson
On 18.03.2013 09:10, Norah Jones wrote: I am having an string which was have few ' (single quote) and few " (double quotes) and was not able to insert into the mysql database. I have replaced them with \' and \" and everything is fine. Though this are fine now but don't understand the working a

[PHP] significance of escape character in string in PHP

2013-03-18 Thread Norah Jones
I am having an string which was have few ' (single quote) and few " (double quotes) and was not able to insert into the mysql database. I have replaced them with \' and \" and everything is fine. Though this are fine now but don't understand the working and I could have missed few corner cases a