Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/11/2010, 03:43
winche
 
Fecha de Ingreso: noviembre-2010
Mensajes: 2
Antigüedad: 13 años, 5 meses
Puntos: 0
Pregunta While no muestra primer valor (PHP)

Buenos dias,

Estoy creando una tabla de material registrado en una base de datos y el primer valor disponible no aparece.

¿Alguna idea de porque?

Código:
      <?php 
      $resultado=mysql_query("SELECT * FROM material", $conn);
      $info=mysql_fetch_object($resultado);?> 
 <h2>BUSQUEDA DE MATERIAL  </h2><br />
 
<table width="800" border="0" align="center">
   <tr>
     <td width="193"><strong>DESCRIPCION</strong></td>
     <td width="410"><strong>N/S O IMEI</strong></td>
     <td width="88"><strong>TIPO</strong></td>
     <td width="91"><strong>PROPIEDAD</strong></td>
   </tr>
         <?php  while (($info=mysql_fetch_object($resultado))!=null)
		{
			echo "<tr>
     <td><a href='material_detalle.php?id=".$info->id."'>".$info->marca." ".$info->modelo."</a></td>
     <td>".$info->serial."</td>
     <td>".$info->tipo."</td>
     <td>".$info->propietario."</td>
   </tr>";
		}?> 

</table>