Bug #3707 Updated: Inserting the ' char into a mysql table
| From: | Bug Database | Date: | Thu, 02 Mar 2000 16:41:31 +0000 |
| Subject: | Bug #3707 Updated: Inserting the ' char into a mysql table | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16291@lists.php.net to get a copy of this message | ||
ID: 3707
Updated by: joey
Reported By: ronen@aai.co.il
Status: Closed
Bug Type: MySQL related
Assigned To:
Comments:
You need to backslash escape the ' char.
You can use any of the following
Turn on magic quotes (http://www.php.net/manual/configuration.php3)
addslashes (http://www.php.net/manual/function.addslashes.php3)
e/preg to replace ' with \'
and so on...
Full Bug description available at: http://bugs.php.net/?id=3707