Welcome Guest, Not a member yet? Register   Sign In
Commands out of sync
#4

(01-15-2015, 02:21 AM)skunkbad Wrote: Hack:

/system/database/drivers/mysqli/mysqli_result.php

CodeIgniter does not currently allow more than one stored procedure to be run during the same request.

The following method was added to the CI_DB_mysqli_result class:

Code:
/**
* Read the next result
*
* @return  null
*/  
function next_result()
{
    if (is_object($this->conn_id))
    {
        return mysqli_next_result($this->conn_id);
    }
}

// --------------------------------------------------------------------

Then you simply call next_result() between calls to your stored procedures. This assumes you're using MySQLi.

i have done this but still facing same problem

here is my retrieving data code

foreach($result->next_result() as $values){ }
Reply


Messages In This Thread
Commands out of sync - by debajyoti.saha09 - 01-14-2015, 12:46 AM
RE: Commands out of sync - by Rufnex - 01-14-2015, 02:32 AM
RE: Commands out of sync - by skunkbad - 01-15-2015, 02:21 AM
RE: Commands out of sync - by mehmood sanjrani - 03-01-2016, 11:21 AM
RE: Commands out of sync - by meSmashsta - 01-08-2017, 11:40 PM
RE: Commands out of sync - by dimas - 03-21-2017, 04:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB