Ver Mensaje Individual
  #6 (permalink)  
Antiguo 26/12/2014, 07:24
Rebuilding
 
Fecha de Ingreso: julio-2014
Mensajes: 161
Antigüedad: 9 años, 9 meses
Puntos: 4
Respuesta: mybb Commands out of sync

YA HICE DE TODO Y NO SE QUE HACER

Bueno investigando efectivamente cuando se usan PROCEDURES da algo de problemas, porque es una multiquery PERO SOLO DA UN SOLO RESULTSET, EN EL PHPMYADMIN NO DA PROBLEMAS Y SOLO DA UN SOLO RESULTSET, segun aqui da la respuesta, pero no funciona

https://ellislab.com/forums/viewthread/221544/

Y efectivamente el mybb no hace ningun free_result() y mucho menos un next_result(), hice una funcioncita en la class que estoy trabajando, tambien intente descomentando el while, que viene en esta funcion

Código PHP:
    function consultasql($datos){
         global 
$db;
        
$resultado $db->query($datos);
        return 
$resultado;
//while($db->next_result($resultado));
        
$db->next_result($resultado);
        
$db->free_result($resultado);
    } 
Tambien en el archivo db_mysqli.php del mybb puse esto

Código PHP:
    function next_result($res){
        
mysqli_next_result($res);
    } 
Ya en lugar de invocar $db->query invoco $this->consultasql, pero sigue

2014 - Commands out of sync; you can't run this command now


Última edición por Rebuilding; 26/12/2014 a las 07:53