From:             rpreti at ig dot com dot br
Operating system: Linux
PHP version:      4.2.3
PHP Bug Type:     ODBC related
Bug description:  ODBC Stored Procedure Return

I use the code below to get a CHAR from a stored procedure. My system is
PHP4+DB2+LINUX.

I have heard that php just support input parameters to stored procedures.
I need to know how to get output parameters if is possible.
===========================================
$result=odbc_prepare($conn,"{CALL DSMTD.S6S006(?,?)}");
$par[0]=$pim.$num_rand;
$par[1]='            ';
odbc_execute($result,&$par);
print_r($par);
============================================

Thanks,

Renato Preti
-- 
Edit bug report at http://bugs.php.net/?id=22438&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22438&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22438&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22438&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22438&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22438&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22438&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22438&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22438&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22438&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22438&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22438&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22438&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22438&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22438&r=gnused

Reply via email to