Welcome Guest, Not a member yet? Register   Sign In
Commands out of sync; you can't run this command now (with free_result())
#3

My solution.

\system\database\DB_result.php 

....
public function result_array()
{
              .....
              is_null($this->row_data) OR $this->data_seek(0);
              if($this->conn_id->affected_rows > 0) {// My custom
                    while ($row = $this->_fetch_assoc())
                    {
                            $this->result_array[] = $row;
                    }
                    $this->free_result(); // My custom
                    @mysqli_next_result($this->conn_id); // My custom
              }

              return $this->result_array;
}
Reply


Messages In This Thread
RE: Commands out of sync; you can't run this command now (with free_result()) - by Anonymos - 08-27-2016, 12:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB