addslashes Question

From: Date: Wed, 21 Mar 2001 21:56:34 +0000
Subject: addslashes Question
Groups: php.general 
Request: Send a blank email to php-general+get-45005@lists.php.net to get a copy of this message
I have a form to modify a record in a MySQL database. The record contains this: 3" Brush The code in question is like this: while ($row = mysql_fetch_array($result)) { $desc1 = $row['desc1']; ------ <input type="text" name="desc1" value="<?php echo "$desc1"; ?>"> I've tried using addslashes to the variable in various ways and it always returns: 3\ What am I doing wrong? Sorry this is probably the 1000th time this has been asked. Jeff Oien

« previous php.general (#45005) next »