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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rpreti at ig dot com dot br
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 15:01:34 2025 UTC