Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Need help preventing injection - newbie

Need help preventing injection - newbie

From: AlexCook <cook_at_propellingsolutions.com>
Date: Sun, 18 Nov 2007 20:46:02 -0800 (PST)
Message-ID: <72c065ae-4290-4754-88af-6f73ede2ee4f@e4g2000hsg.googlegroups.com>


Hi

I am an oracle newbie. Also an intermediate in mysql.

In the past I've used a method in PHP to prevent injection:

function _escape ( $sql )

	{

$args = func_get_args();
foreach($args as $key => $val) { $args [ $key ] = mysql_real_escape_string ( $val ); }
$args [ 0 ] = $sql;
return call_user_func_array ( 'sprintf', $args); }

Wondering if anyone knows the oracle equivalent in PHP for preventing sql injection?

Thanks in advance Received on Sun Nov 18 2007 - 22:46:02 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US