[SOLVED] - Interesting MySQLi issue - Stored Procedures with Multiple Results. |
[eluser]Unknown[/eluser]
Too bad I didn't find this before I started hacking on a solution myself. I used your old code as a base and came up with this: Code: function next_result($store_result = TRUE) Which can simply be used like this: Code: $storedProc = 'CALL fetchMultipleResultSets()'; By clearing the result_object and result_array, the existing functions are used to populate these during the next call to result(), row(), etc. This code also sets the num_rows field, and returns TRUE or FALSE depending on if additional result sets where found. By using next_result(FALSE); you get the behaviour from your old post, where one simply discards the result set to get stored procedures working. ![]() |
Messages In This Thread |
[SOLVED] - Interesting MySQLi issue - Stored Procedures with Multiple Results. - by El Forum - 04-05-2010, 01:06 AM
[SOLVED] - Interesting MySQLi issue - Stored Procedures with Multiple Results. - by El Forum - 04-06-2010, 12:26 AM
[SOLVED] - Interesting MySQLi issue - Stored Procedures with Multiple Results. - by El Forum - 08-26-2010, 07:53 PM
[SOLVED] - Interesting MySQLi issue - Stored Procedures with Multiple Results. - by El Forum - 10-11-2010, 06:10 AM
[SOLVED] - Interesting MySQLi issue - Stored Procedures with Multiple Results. - by El Forum - 01-11-2011, 04:44 PM
|