Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/04/2009, 19:00
Avatar de By_George
By_George
 
Fecha de Ingreso: abril-2009
Ubicación: localhost
Mensajes: 629
Antigüedad: 15 años
Puntos: 19
Respuesta: Mostrar registros en grupos de 3

creo que quedaria mejor asi para cuando fueran mas de 9 registros

<table>
<tr>
<?php
$cont=1;
while($row=mysql_fetch_array($query))
{
echo "<td>$row['nombre_del_campo']</td>";
if($cont==3)
{
echo "</tr><tr>";
$cont=1;
}
else
{
$cont++;
}
}
?>
</tr>
</table>