Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/11/2009, 15:13
Avatar de dcreate
dcreate
 
Fecha de Ingreso: octubre-2009
Ubicación: Veracruz
Mensajes: 536
Antigüedad: 14 años, 6 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>