php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22438 ODBC Stored Procedure Return
Submitted: 2003-02-26 08:36 UTC Modified: 2003-02-26 09:41 UTC
From: rpreti at ig dot com dot br Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 4.2.3 OS: Linux
Private report: No CVE-ID: None
 [2003-02-26 08:36 UTC] rpreti at ig dot com dot br
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-26 09:41 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Not a place for support questions.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 04:01:29 2024 UTC