Re: [PHP-DB] ORACLE FUNCTION

2003-11-02 Thread Christopher Jones
MaNu wrote: Function : FUNCTION PREZZO_TOT ( pUtente in v_utenti.utente%type, pTrasp in char ) return NUMBER; Php $query = "SELECT poe.carrello.prezzo_tot('AATCXNK2EN3RDKB','1') PIPPO FROM dual"; $parsed = ociparse($conn,$query); ociexecute($pars

[PHP-DB] ORACLE FUNCTION

2003-10-31 Thread MaNu
Function : FUNCTION PREZZO_TOT ( pUtente in v_utenti.utente%type, pTrasp in char ) return NUMBER; Php $query = "SELECT poe.carrello.prezzo_tot('AATCXNK2EN3RDKB','1') PIPPO FROM dual"; $parsed = ociparse($conn,$query); ociexecute($parsed); $numRows = ocifetchst

[PHP-DB] Oracle Function Calls Redux

2001-03-08 Thread Richard S. Crawford
Problem solved! Thanks to everyone who helped out (and to our system DBA for reminding me that an Oracle function is just a type of stored procedure). For what it's worth, here is the code that I wound up using (sensitive company information 'ed out, of course): The value of $result

Re: [PHP-DB] Oracle Function Calls

2001-03-07 Thread Joe Brown
this chunk of code comes out of http://www.php.net/manual/en/function.ocinewcursor.php Hope that helps, I havn't gone there (yet). ""Richard S. Crawford"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ah! My bad! I sent this question out with the wrong s

Re: AW: AW: [PHP-DB] Oracle Function Calls

2001-03-07 Thread Richard S. Crawford
Hm. Assuming that I don't have the option of rewriting the function to a procedure, is there another way to go? At 10:54 PM 3/7/01 +0100, Matthias Kopolt wrote: >Oracle Divides Function in several Groups > >DML means Data-Manipulating function; > >(in your funciton is a update or insert) > >to

AW: AW: [PHP-DB] Oracle Function Calls

2001-03-07 Thread Matthias Kopolt
dure needs to declare the second argument as in and can declare the second one as "out" or "in out" mk -Ursprungliche Nachricht- Von: Richard S. Crawford [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 7. Marz 2001 22:46 An: [EMAIL PROTECTED] Betreff: Re: AW: [PHP-DB] Orac

Re: AW: [PHP-DB] Oracle Function Calls

2001-03-07 Thread Richard S. Crawford
str', 999) from dual; > >dual is a dummy table; > >then fetch the resultrow and ociresult($stmt, 1) will return your >functionreturnvalue > > >mk > >-Ursprungliche Nachricht- >Von: Richard S. Crawford [mailto:[EMAIL PROTECTED]] >Gesendet: Mittwoch

AW: [PHP-DB] Oracle Function Calls

2001-03-07 Thread Matthias Kopolt
Richard S. Crawford [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 7. Marz 2001 22:11 An: [EMAIL PROTECTED] Betreff: [PHP-DB] Oracle Function Calls Ah! My bad! I sent this question out with the wrong subject line. My apologies to everyone that I confused. At 01:07 PM 3/7/01 -0800, Richard S. Craw

[PHP-DB] Oracle Function Calls

2001-03-07 Thread Richard S. Crawford
Ah! My bad! I sent this question out with the wrong subject line. My apologies to everyone that I confused. At 01:07 PM 3/7/01 -0800, Richard S. Crawford wrote: >I desperately need to know whether it is possible to call an Oracle >function in PHP. For example... > >$functionResult=hubins