Escaping special characters in sql
| From: | William Lovaton | Date: | Wed, 10 Jul 2002 23:28:29 +0000 |
| Subject: | Escaping special characters in sql | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-1844@lists.php.net to get a copy of this message | ||
Hello everybody,
My name is William. I'm new in this list, and I have been testing PEAR
because I want to use it in my next software development project.
I have a problem escaping special characters in the SQL's sentences... I
inserted the next text in a database field: Giovanni's.
In Mysql I got this: Giovanni\\\'s
In Oracle I got this: Giovanni\'s
How do I solve this problem?
Is this a bug?
Do I have to setup an specific option in the DB class??
Thanx for any hint you could give me.
William.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com