ODBC Stored Procedure
| From: | Renato Preti | Date: | Wed, 26 Feb 2003 17:03:27 +0000 |
| Subject: | ODBC Stored Procedure | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-25929@lists.php.net to get a copy of this message | ||
Hi all,
I have a system PHP4+LINUX+DB2. I'm using stored procedure on IBM DB2 7.1,
and in PHP(4.23) I can execute the procedure but I can't get the return
values. Does anyone know why? Below is my source code.
Thank you,
Renato Preti
========================================================
$result=odbc_prepare($conn,"{CALL DSMTD.S6S006(?,?)}");
$par[0]=$pim.$num_rand;
$par[1]='
';
if(!odbc_execute($result,&$par))
print("<b>The odbc statement failed to execute! </b>");
print_r($par);