Re: Special characters --> single quote

From: Date: Tue, 22 Aug 2000 13:52:22 +0000
Subject: Re: Special characters --> single quote
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-12939@lists.php.net to get a copy of this message
> This is the query > > $query = > "update toto set > OBSERVATION='$OBSERVATION' where id =$number"; Did you say you already tried addslashes? If not, do this: $query = "update toto set OBSERVATION = '". addslashes($OBSERVATION). "' where id = $number"; jason

« previous php.general (#12939) next »