From: hd4_all at yahoo dot co dot in
Operating system: windows 2000 prof.
PHP version: 5.2.0
PHP Bug Type: MySQLi related
Bug description: how to get parameter values of stored procedure.?
Description:
------------
I want to get parameter values of stored procedure in the php variable..
I have submited one procedure of mysql and now i want get value of 'id' in
the php variable then how can i do this..??
Is it possible to do this.??
Reproduce code:
---------------
create procedure test(OUT id INT)
begin
select e_id into id from table where name="Hardik";
end;
<?php
$link = mysqli_connect("localhost","root","mysql","shopping_cart");
$id=0;
mysqli_multi_query($link, "call test($id)")
mysqli_store_result($link))
mysqli_query($link,$query);
echo $id;
?>
Expected result:
----------------
my expected result is that the value of '$id' is the id of
the person 'Hardik'...
Actual result:
--------------
It gives an error that can't pass direct value to OUT or INOUT parameter..
--
Edit bug report at http://bugs.php.net/?id=40143&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40143&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40143&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40143&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40143&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40143&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40143&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40143&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40143&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40143&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40143&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40143&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40143&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40143&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40143&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40143&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40143&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40143&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40143&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40143&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40143&r=mysqlcfg