translating special characters when storing to a database

From: Date: Fri, 18 Oct 2002 18:33:42 +0000
Subject: translating special characters when storing to a database
Groups: php.general 
Request: Send a blank email to php-general+get-120543@lists.php.net to get a copy of this message
Hi, I have a variable called '$myvar' containing the text: "this & that" I store it into a MySQL table using stripslashes($myvar). When I later retrieve the field, it looks like: "this &amp that" How can I keep it in it's original form when storing it? Thanks, Don

« previous php.general (#120543) next »