23/11/2009, 15:13
|
| | | Fecha de Ingreso: octubre-2009 Ubicación: Veracruz
Mensajes: 536
Antigüedad: 15 años, 3 meses Puntos: 22 | |
Respuesta: while, tablas y mysql en php una buena presentacion es
$bus=mysql_query("select * from tabla");
$res=mysql_fetch_array($bus);
<table>
<tr>
<td>Autor</td><td>Libro</td><td>Valor</td>
</tr>
<?php
do
{
echo '<tr>';
echo '<td>'.$res['autor'].'</td>';
echo '<td>'.$res['libro'].'</td>';
echo '<td>'.$res['valor'].'</td>';
echo '</tr>';
}
while($res=mysql_fetch_array($bus));
?>
</table> |