In ref. to note stating
"Using an oracle database addslashes
doesn`t work to escape single quotes."
This is not successful
when passed to ora_parse():
http://www.php.net/manual/function.ora-parse.php3<p>
Another way to deal with this problem is to use
stripslashes():
http://www.php.net/manual/function.stripslashes.php3
function.
PHP will try to "escape" single quotes on name
value pairs
(POST or GET) example: A query string is passed with single quotes
like
(SELECT * FROM EMP WHERE EMPNAME = 'SMITH')
will
be changed to
(SELECT * FROM EMP WHERE EMPNAME
=\'SMITH\')
stripslashes():
http://www.php.net/manual/function.stripslashes.php3
will fix this.
(ora_parse($curs,stripslashes($query)));