Re: Text boxes posted to MySQL record that contain quotes
| From: | Vernon | Date: | Wed, 09 Jul 2003 03:35:04 +0000 |
| Subject: | Re: Text boxes posted to MySQL record that contain quotes | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154480@lists.php.net to get a copy of this message | ||
OK when I use the mysql_escape_string() it adds the slashes so that the
message will have \"the message\" so I've tried using the stripslashes() as
such:
$message =
stripslashes(mysql_escape_string($HTTP_POST_VARS['message']));
which then causes the orginal problem, so it seems that I keep trying to
reverse each other.
I don't want the slashes and I need the quotes.