Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/09/2011, 01:49
detectivemarti
 
Fecha de Ingreso: julio-2011
Mensajes: 25
Antigüedad: 12 años, 9 meses
Puntos: 1
Enseñar productos

Código PHP:
echo '<table width="550px" border="0" ><tr>';
$cnt 0;
while (
$fila mysql_fetch_assoc($lista1))
{
            if (
$cnt == 0)
            echo 
'</tr><tr>';
            echo 
'<td><table  width = "180px"><tr><td>';
            echo 
'</td>'.$fila['nombre'].'<br><br><br>'.'</td>';
            echo 
'<a href="php/comprar.php?id_art='.$fila['id_art'].'&nom='.$fila['nombre'].'&id_usuari='.$_SESSION['inici'].'&id_art='.$fila['id_art'].'"><img src='.$fila['imagen'].' width="130" height="130" alt="Tamao original" border="0"> </a>';
            echo 
'</td></tr><tr><td>';
            echo 
'<a href="php/comprar.php?id_art='.$fila['id_art'].'&nom='.$fila['nombre'].'&id_usuari='.$_SESSION['inici'].'&id_art='.$fila['id_art'].'"><img src=images/comprar.gif width="25" height="25" alt="comprar" border="0"> </a>';
            echo 
'</td></tr></table></td>';  
            
$cnt++;   
}     
echo 
'</tr></table>'
Tengo este codigo pero algunos productos si que se me ven pero cuando el titulo es más corto se sube la imagen alguna ida para que me quede siempre igual.