Re: escaped characters problem

From: Date: Mon, 19 Jun 2000 13:10:44 +0000
Subject: Re: escaped characters problem
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-471@lists.php.net to get a copy of this message
> use the functin htmlspecialchars() > I tried adding $description = htmlspecialchars($description) but I now get a value of Lez\\ in $strsql > > example > > --------- > > > > original typed entry in description field: Lez's quote test > > echoed $description value: Lez\'s quote test > > $strsql = "INSERT INTO news (description) VALUES ( '$description' )"; > > echoed $strsql value: Lez\ > > > > Can anyone tell me what is going on and how I can fix it?

« previous php.db (#471) next »