Re: quotes in text.

From: Date: Fri, 16 Jul 2004 20:12:17 +0000
Subject: Re: quotes in text.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190751@lists.php.net to get a copy of this message
On Fri, 16 Jul 2004, Justin Patrin wrote: > This is why he said: "Since you seem to have magic_quotes_gpc enabled, > you can put the value directly into your query." > > You shouldn't use htmlentities when putting it into the DB. Use it > when displaying the text. I tried it both ways and it only works correctly when I do use htmlentities($_POST['text']) in my insert query. I'm not showing the text to the user on page 3 at all. Ed

« previous php.general (#190751) next »