Ver Mensaje Individual
  #6 (permalink)  
Antiguo 15/03/2008, 16:57
Avatar de jaronu
jaronu
 
Fecha de Ingreso: febrero-2008
Mensajes: 2.183
Antigüedad: 18 años, 7 meses
Puntos: 52
Re: Como mostrar campos ordenados en columnas

Prueba asi:


Código PHP:

echo "<table border = '0' cellspacing='15'>"; 
echo 
"<tr>"; 
echo 
"<td><b><u>Patente</u></b></td>"; 
echo 
"<td><b><u>Seguro</u> </b></td>"; 
echo 
"</tr> \n"; 
echo 
"</table>";
 for (
$i=0; $i<$num_filas; $i++) { 
     
     
$row = mysql_fetch_array($resultado); 

echo 
"<table border = '0' cellspacing='15'>";      
echo 
"<tr> \n"; 
echo 
"<td>".$row["patente"]."</td>"; 
echo 
"<td>".$row["seguro"]."</td>"; 
echo 
"</tr> \n"; 
echo 
"</table>";
}