Ver original<?php while ($fila = mysql_fetch_array($result)) { if($fila==NULL) { echo '<td>0</td>'; }else{ echo '<td>'.$fila['numero'].'</td>'; }}?>