Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/06/2008, 19:57
Ruben_C
 
Fecha de Ingreso: febrero-2006
Mensajes: 217
Antigüedad: 18 años, 2 meses
Puntos: 0
ayuda con imagenes

hola, necesito hacer que las fotos se muestren hacia un lado, por lo menos 4 columnas, pero no se como.
Código PHP:
<table>

<?php while ($row=mysql_fetch_assoc($sql)) {?>
<tr>
<td><a href="<?php echo $row['imagen']; ?>" rel="lytebox[vacation]"  title="<?php echo $row['descripcion']; ?>"><img src="<?php echo $row['imagen']; ?>" width="100" height="100"/></td>
</tr>
<tr>
<td><?php echo $row['titulo'];?></td>
</tr>
<?php }?>
</table>
use este codigo que sale en otro mensaje
Código PHP:
<table><tr>

<?php $i0;
while(
$rowmysql_fetch_array($sql))
{
    if(
$i%3==0)
    {
       echo 
"<td>"<a href="<?php echo $row['imagen']; ?>" rel="lytebox[vacation]"  title="<?php echo $row['descripcion']; ?>"><img src="<?php echo $row['imagen']; ?>" width="100" height="100"/>"</td></tr><tr>";
    }
    else {
       echo 
"<td>"<?php echo $row['titulo'];?>"</td>";
    }
     $i++;
}
?>

</tr></table>
pero no me resulta al poner lo links ¿como se hace?