MySQL Forums
Forum List  »  PHP

Re: Stored procedure
Posted by: praba karan
Date: January 08, 2008 11:21PM

thanks Peter Brawley

Its working

but we are using PEAR DB Package.
In pear db above stored procedure have some problem;

WE are calling the stored prcedure as follows

$db = getDBHandler();
$res = $db->getAll("call storedPrcedureName($inParameter,@ourParameter)");
if (PEAR::isError($res))
{
echo "<pre>" ;
print_r($res);
}
else
{
echo "<pre>" ;
$res =$db->getAll("select @ourParameter");
print_r($res);
}



I am getting error as follows


[userinfo] => call exampleProcedure() [nativecode=1312 ** PROCEDURE mzapp.mzappNew can't return a result set in the given context]

Options: ReplyQuote


Subject
Written By
Posted
January 08, 2008 06:15AM
January 08, 2008 10:10AM
Re: Stored procedure
January 08, 2008 11:21PM
January 09, 2008 03:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.