stripping slashes before insert behaving badly
| From: | Charles Kline | Date: | Mon, 17 Mar 2003 14:12:23 +0000 |
| Subject: | stripping slashes before insert behaving badly | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-139954@lists.php.net to get a copy of this message | ||
Hi all,
I am inserting data from a form into a mySQL database. I am using addslashes to escape things like ' in the data input (this is actually being done in PEAR (HTML_QuickForm).
The weird thing is that the data gets written into the table like: what\'s your problem?
WITH the slash. I am not sure what to modify to fix this so the literal slash is not written.
Thanks,
Charles