RE: [PHP] Special characters --> single quote

From: Date: Mon, 21 Aug 2000 19:29:34 +0000
Subject: RE: [PHP] Special characters --> single quote
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12793@lists.php.net to get a copy of this message
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 (#12793) next »