MikeBronner
Programmer
Hi All,
For the life of me, I can't figure out how to successfully execute stored procedures in PHP (on IIS) in MSSQL using MDB2.
I have the following code:
This returns the following output:
I'm truly stumped. One of the problems I have found is that MDB2 does not provide adequate documentation and examples, and there doesn't seem to be anything regarding executeStoredProc when searching in Google. I appreciate any help and advice!![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Thanks guys!
For the life of me, I can't figure out how to successfully execute stored procedures in PHP (on IIS) in MSSQL using MDB2.
I have the following code:
Code:
$db = MDB2::connect([...]);
$db->loadModule("Function");
$r_resultset = $db->function->executeStoredProc("[stored proc name]", [parameter array]);
if (MDB2::isError($r_resultset)) {print($r_resultset->getMessage());}
That doesn't seem like a very good error message to me. I get the same 'error' when trying to do this using $db->query("EXECUTE [stored proc name] [list of parameters"), just with a lower number (Object id #4), and the same trying $db->exec([...]) (Object id #5).Object id #6
I'm truly stumped. One of the problems I have found is that MDB2 does not provide adequate documentation and examples, and there doesn't seem to be anything regarding executeStoredProc when searching in Google. I appreciate any help and advice!
Thanks guys!