Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/07/2010, 07:21
jadsk
 
Fecha de Ingreso: julio-2010
Mensajes: 4
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: Problema con PHP.. Muestra código

<?php
$con=(mysql_connect("localhost","root",""));
mysql_select_db("bdoropeza",$con);
$sql="select * from sala1";
$res=mysql_query($sql,$con);
echo "<table width='200' border='1' align=center>";
echo "<tr>
<td>Numero de Equipo</td>
<td>Serial CPU</td>
<td>Serial Monitor</td>
<td>Serial Mouse</td>
<td>Serial Teclado</td>
</tr>";
while ($fila=mysql_fetch_array($res))
{
echo "<tr>";
echo "<td>".$fila[0]."</td>";
echo "<td>".$fila[1]."</td>";
echo "<td>".$fila[2]."</td>";
echo "<td>".$fila[3]."</td>";
echo "<td>".$fila[4]."</td>";
echo "</tr>";
}
echo "</table>";
?>