Ver Mensaje Individual
  #9 (permalink)  
Antiguo 24/12/2014, 14:42
Avatar de jose_php
jose_php
 
Fecha de Ingreso: mayo-2014
Mensajes: 44
Antigüedad: 10 años
Puntos: 2
Respuesta: "Error" Abusurdo

Espero te sirva...

Código PHP:
Ver original
  1. <?php
  2.     if ($resultado = mysqli_query($link, "SELECT ... FROM ...")){
  3.         $items = mysqli_fetch_array($resultado, MYSQLI_ASSOC);
  4.         if(count($items) <= 0){
  5.             for($i=0; $i<count($items); $i++):
  6.                 echo 'Hobbit: '.$items['hobbit']."<br />";
  7.             endfor;
  8.         } else{
  9.             echo 'No existe';
  10.         }
  11.     }