Re: Stored procedures
| From: | Justin Patrin | Date: | Thu, 13 May 2004 16:10:20 +0000 |
| Subject: | Re: Stored procedures | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12469@lists.php.net to get a copy of this message | ||
María josé reartes wrote:
Didn't work... I'll tell you what I'm doing so far: - I'm connecting to the oracle database from PHP $dsn = "oci8://$user:$pass@$db_name"; $db = DB::connect($dsn); - I've previously created a stored procedure "PRUEBA_PHP" which inserts a row into the table "EMP" Now, I need to invoke "PRUEBA_PHP" from my PHP application. I'm using PEAR database packages (DB). I've tried to call "PRUEBA_PHP" doing a $db->query but didn't work either.. So, any other idea? Thanks Majo -----Original Message----- From: Justin Patrin [mailto:papercrane@reversefold.com] Sent: miércoles, 12 de mayo de 2004 18:07 To: pear-general@lists.php.net Subject: Re: [PEAR] Stored procedures Martin Marques wrote:What exactly does your SQL look like? If you need to use parameters, you may have to use the oracle bind functions in PHP (not sure how to use them in PEAR::DB myself). -- paperCrane <Justin Patrin>El Mié 12 May 2004 17:02, María José Reartes escribió:Yep. Just do: SELECT function(params) FROM DUALHiAren't Oracle SP called throught the select clause? SELECT my_func();I need to invoke an oracle stored procedure from PHP andthrough PEAR. Is this possible? Does anyone know how?