note 91147 added to function.db2-escape-string
| From: | hippyjim at osu1 dot php dot net | Date: | Wed, 27 May 2009 13:52:43 +0000 |
| Subject: | note 91147 added to function.db2-escape-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156072@lists.php.net to get a copy of this message | ||
One thing to note here - don't know if it applies to all DB2 installations, and I know I'm
using an antiquated one, but my DB2 install wants a ' to be quoted rather than slashed.
That means this function is useless to pick up apostrophes ' in strings, as it adds a slash
which DB2 ignores.
You'll need to use something like str_replace to swap your ' for ''.
----
Server IP: 87.124.35.190
Probable Submitter: 194.75.171.33
----
Manual Page -- http://www.php.net/manual/en/function.db2-escape-string.php
Edit -- https://master.php.net/note/edit/91147
Del: integrated -- https://master.php.net/note/delete/91147/integrated
Del: useless -- https://master.php.net/note/delete/91147/useless
Del: bad code -- https://master.php.net/note/delete/91147/bad+code
Del: spam -- https://master.php.net/note/delete/91147/spam
Del: non-english -- https://master.php.net/note/delete/91147/non-english
Del: in docs -- https://master.php.net/note/delete/91147/in+docs
Del: other reasons-- https://master.php.net/note/delete/91147
Reject -- https://master.php.net/note/reject/91147
Search -- https://master.php.net/manage/user-notes.php