![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/07/2009, 13:14
|
![Avatar de Ronin46](http://static.forosdelweb.com/customavatars/avatar310408_1.gif) | | | Fecha de Ingreso: junio-2009
Mensajes: 398
Antigüedad: 15 años, 7 meses Puntos: 8 | |
Respuesta: Ayuda con una maquetación Suponte que quieres poner 5 fotos por fila.
echo "<table><tr>"
$i = 0;
while ($imagen)
{
if ($i < 5)
{
echo ('<td><a href="' .$direccionRar . '"><img src="'. $direccionJpg . '" width="220" height="150" border="0" /></a> ');
echo "<br>";
echo(<a href="formEnvio.php?path='.$direccionJpg .'">Enviar </a></td>);
}
else
{
$i = 0;
echo "</tr><tr>"
echo ('<td><a href="' .$direccionRar . '"><img src="'. $direccionJpg . '" width="220" height="150" border="0" /></a> ');
echo "<br>";
echo(<a href="formEnvio.php?path='.$direccionJpg .'">Enviar </a></td>);
}
$i = $i + 1
}
echo "</tr></table>"
P.D: Ni de broma copies y pegues ese código, pero la idea sería algo así. El problema es que la última fila igual no te queda con las 5 columnas, ahora mismo no sé que pasaría en ese caso. |