Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/03/2011, 14:31
Avatar de gogupe
gogupe
 
Fecha de Ingreso: octubre-2006
Ubicación: Mallorca
Mensajes: 897
Antigüedad: 17 años, 6 meses
Puntos: 32
Respuesta: Grilla sencilla paso a paso

Te pongo un ejemplo muy básico usando tablas, que es lo más rápido que hay.

Código PHP:

<table border="1">
<tr>
    <td>Nombre</td>
    <td>Apellidos</td>
    <td>Teléfono</td>
</tr>    
<?php
$sql
="SELECT * FROM tabla";
$result=mysql_query($sql,$link);
while (
$row=mysql_fetch_assoc($result))
    {
        echo 
"<tr>";
        echo 
"<td>".$row['nombre']."</td>";
        echo 
"<td>".$row['apellidos']."</td>";
        echo 
"<td>".$row['telefono']."</td>";
        echo 
"</tr>";    
    }
?>

</table>
Te falta definir la conexión a la bd, yo he puesto $link.

Ya cuentas.