Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/03/2010, 08:39
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 15 años, 4 meses
Puntos: 334
Respuesta: Mostrar cero en la tabla.

bueno te falta un else
por que ejecutara ambas si la condicion es true
Código PHP:
Ver original
  1. <?php            
  2. while ($fila = mysql_fetch_array($result)) {
  3.  if($fila==NULL) {
  4.    echo '<td>0</td>';
  5.  }else{
  6.    echo '<td>'.$fila['numero'].'</td>';
  7.  }
  8. }
  9. ?>
__________________
More about me...
~ @rhyudek1
~ Github