Lo mio es la no logica pues no se de codigo esta es la tabla donde estan los datos por si
hiciese falta
Código PHP:
Ver original<table width="100%" border="0" align="center">
<?php
$cuantos=0;
do {
if($cuantos==3){
?>
<tr>
<?php
}
$cuantos ++;
?>
<td height="183" align="center" valign="top" class="centro"><p><a href="11.php?foto_id=<?php echo $row_carrito['foto_id']; ?>"><img src="fotos/grandes/<?php echo $row_carrito['nombre']; ?>" width="148" height="123" /></a><br />
<?php echo $row_carrito['lugar']; ?><br />
<?php echo $row_carrito['precio']; ?>Euros<br />
</p>
<form id="form1" name="form1" method="post" action="carrito_compra.php">
<input name="cantidad" type="hidden" id="cantidad" value="1" />
<input name="precio" type="hidden" id="precio" value="<?php echo $row_carrito['precio']; ?>" />
<input name="lugar" type="hidden" id="lugar" value="<?php echo $row_carrito['lugar']; ?>" />
<input name="button" type="submit" class="rojo" id="button" value="Añadir al Carrito" />
</form></td>
<?php
if($cuantos==3){
$cuantos=0;
?>
</tr>
<?php
}
?>
</table>