Bug #3088 Updated: addslashes doesn't work properly
| From: | Bug Database | Date: | Wed, 15 Mar 2000 07:12:41 +0000 |
| Subject: | Bug #3088 Updated: addslashes doesn't work properly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16823@lists.php.net to get a copy of this message | ||
ID: 3088
Updated by: fmk
Reported By: guus@madocke.nl
Status: Closed
Bug Type: MSSQL related
Assigned To:
Comments:
The MS SQL server does not use \ as escape char for '. You have to use '' if you want
to insert a ' in the database.
you could try $data = str_replace"'", "''", $data);
- Frank
Full Bug description available at: http://bugs.php.net/?id=3088