Welcome Guest, Not a member yet? Register   Sign In
MySQLi Library with Stored Procedures & Multiple result sets support
#10

[eluser]binbink[/eluser]
the mentioned solution works fine for me when the procedure returns multiple rows.

$result = $this->mydb->Query($sql);

but what if routine does not return any data? e.g. it only updates two tables with the specified data.

if I use $this->db->query I see

Error Number: 2014
Commands out of sync; you can't run this command now

if I use

$this->mydb->Query($sql);

I do not see any error messages; but the data is not updated. NOTE: there should not be an issue with routine itself since if I print the query in question and try to execute this in MySQL Workbench - tables are updated correctly.

Let me know if there are any known/possible solutions for this.

Thank you


Messages In This Thread
MySQLi Library with Stored Procedures & Multiple result sets support - by El Forum - 03-22-2012, 02:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB