Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/01/2011, 14:52
August
 
Fecha de Ingreso: febrero-2005
Mensajes: 626
Antigüedad: 19 años, 2 meses
Puntos: 10
mysqli_get_warning como trabaja

Hola tengo este script

Código PHP:
                $warnings mysqli_get_warnings($resource);
                   do {
                    
$msjinterno.="Warning: $warnings->errno: $warnings->message\n";
                }while (
$warnings->next()); 
Pero me da los siguientes errores:


Notice: Trying to get property of non-object in \INCLUDES\db_class.php on line 525

Notice: Trying to get property of non-object in \INCLUDES\db_class.php on line 525

Fatal error: Call to a member function next() on a non-object in \INCLUDES\db_class.php on line 526

La linea 525 es la primera y la 526 es la segunda, cual es mi error, Como debo armar esto?

Saludos y gracias de antemano