Ver Mensaje Individual
  #11 (permalink)  
Antiguo 24/02/2013, 11:03
yolanda16568
 
Fecha de Ingreso: agosto-2011
Mensajes: 165
Antigüedad: 12 años, 8 meses
Puntos: 1
Respuesta: Paginacion en php

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
  1. <table width="100%" border="0" align="center">
  2.       <?php
  3.  $cuantos=0;
  4.  do {
  5. if($cuantos==3){
  6. ?>
  7.  <tr>
  8. <?php
  9. }
  10. $cuantos ++;
  11.  ?>      
  12.             <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 />
  13.               <?php echo $row_carrito['lugar']; ?><br />
  14.               <?php echo $row_carrito['precio']; ?>Euros<br />
  15.             </p>
  16.               <form id="form1" name="form1" method="post" action="carrito_compra.php">
  17.                 <input name="cantidad" type="hidden" id="cantidad" value="1" />
  18.                 <input name="precio" type="hidden" id="precio" value="<?php echo $row_carrito['precio']; ?>" />
  19.                 <input name="lugar" type="hidden" id="lugar" value="<?php echo $row_carrito['lugar']; ?>" />
  20.                 <input name="button" type="submit" class="rojo" id="button" value="Añadir al Carrito" />
  21.             </form></td>
  22.           <?php
  23. if($cuantos==3){
  24. $cuantos=0;
  25. ?>
  26. </tr>
  27. <?php
  28. }
  29. ?>  
  30.        
  31.         <?php } while ($row_carrito = mysql_fetch_assoc($carrito)); ?>
  32. </table>