Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/05/2009, 02:35
pincho
 
Fecha de Ingreso: mayo-2004
Ubicación: Argentina
Mensajes: 126
Antigüedad: 19 años, 10 meses
Puntos: 1
De acuerdo Respuesta: "Tableo" html automático de tabla mysql

A ver si esto te aclara el panorama...

Código PHP:
<?php

mysql_connect
("localhost","root","");
$result mysql_db_query("baseDdatos","select * from usuarios");

$cols=mysql_num_fields($result);

echo
"<table>";
while(
$row mysql_fetch_array($result)) {
echo
"<tr>";

for(
$i=0;$i $cols;$i++) {            
     echo 
"<td>".$row[$i]."</td>";
     }
     
echo
"</tr>";
}
echo
"</table>";

mysql_free_result($result);
?>
Saludos!