Re: Special characters --> single quote

From: Date: Tue, 22 Aug 2000 09:55:38 +0000
Subject: Re: Special characters --> single quote
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12910@lists.php.net to get a copy of this message
Thanks for your response James... But I have tried this with no success ... In fact, my sql query is cut by this single quote. Regards Ludovic. James Moore a écrit : > With the string your inserting do the following > > $string = addslashes($string); > > > -----Original Message----- > > From: ludovic [mailto:ludovic@logosapience.com] > > Sent: 21 August 2000 10:51 > > To: php-general@lists.php.net > > Subject: Re: [PHP] Special characters --> single quote > > > > > > > > How can I define the ' (single quote) as a string ? > > I don't see how can I do that ... > > > > if you mean that I must add a backslash before the single quote > > to record it, I > > tried it but it does not work.... > > > > with regards, > > > > Ludovic. > > > > > You have to define the ' (single quote) as a string and then > > try to insert > > > the record, > > > > > > Hope this help you. > > > > > > ~ Karthick > > > >

« previous php.general (#12910) next »