
12/07/2009, 23:35
|
 | | | Fecha de Ingreso: julio-2008 Ubicación: localhost/colombia/sevillaValle.php
Mensajes: 1.123
Antigüedad: 16 años, 7 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>"; |