Ver Mensaje Individual
  #4 (permalink)  
Antiguo 12/07/2009, 23:35
Avatar de acoevil
acoevil
 
Fecha de Ingreso: julio-2008
Ubicación: localhost/colombia/sevillaValle.php
Mensajes: 1.123
Antigüedad: 15 años, 9 meses
Puntos: 32
Respuesta: Organizar datos de base de datos MysQL en columnas y filas.

$usuarios = mysql_query( "select * from usuarios" ) or die( mysql_error() );

echo "<tr>";

while( $dato= mysql_fetch_assoc( $usuarios ) ) {

echo "<td>".$dato['nombre']."</td>";
echo "<td>".$dato['apellido']."</td>";
echo "<td>".$dato['telefono']."</td>";

}

echo "</tr>";