Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/10/2009, 14:50
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Problema invocando stored procedure

Tienes que usar mysqli_multi_query, junto con mysqli_store_result y mysqli_next_result para traer los resultados de un stored procedure, ve este ejemplo:
Código PHP:
Ver original
  1. <?php
  2. $sQuery='CALL exampleSP(\'param\')';
  3. if(!mysqli_multi_query($this->sqlLink,$sQuery))
  4.   $this->queryError();
  5. $this->sqlResult=mysqli_store_result($this->sqlLink);
  6.  
  7. if(mysqli_more_results($this->sqlLink))
  8.   while(mysqli_next_result($this->sqlLink));
  9. ?>

Saludos.