Ver Mensaje Individual
  #7 (permalink)  
Antiguo 26/05/2011, 15:09
lumines88
 
Fecha de Ingreso: abril-2011
Mensajes: 57
Antigüedad: 13 años
Puntos: 0
Respuesta: Recuadro con CSS

Mirad, si lo pongo de la siguiente forma:

Código PHP:
Ver original
  1. <div id="recuadro">
  2.             <table border="0" cellpadding="10" cellspacing="10" width="50%">
  3.                     <?php
  4.                     $consulta = mysql_query("SELECT DISTINCT * FROM obras WHERE galerias_idgalerias = $idgalerias AND estado != 'artista' ORDER BY fecha_subida DESC", $link);
  5.  
  6.                    
  7.                     while($fila = mysql_fetch_array($consulta)){
  8.                    
  9.                     $cont = 0; 
  10.                        
  11.                     while($fila or $cont < 5){
  12.                         if(cont < 5){
  13.                     ?>
  14.                     <td>
  15.                         <div id ="tamimg">
  16.                         <tr width="10%">
  17.                             <form action="../obras/obra.php" method="POST">    
  18.                                 <input type="image" src="../img/obras/<?php echo $fila['nombre_imagen']; ?>" width="150">
  19.                                 <input type="hidden" name="parametro" value="<?php echo $idgalerias; ?>">  
  20.                                 <input type="hidden" name="idobras" value="<?php echo $fila['idobras']; ?>">   
  21.                             </form>
  22.                         </tr>
  23.                         </div>
  24.                     </td>
  25.                 <?php
  26.  
  27.                 }
  28.                
  29.                 $cont +=1;
  30.                
  31.                 }
  32.             }
  33.                 ?>
  34.  
  35.             </table>
  36.         </div>

Me sale bien el cuadro, lo engloba todo, pero se repite la misma imagen en un bucle infinito... Quizás no sea cosa de CSS...