Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/08/2010, 15:21
Gashe
 
Fecha de Ingreso: agosto-2010
Ubicación: Madrid
Mensajes: 53
Antigüedad: 13 años, 9 meses
Puntos: 1
Respuesta: Imagenes en PHP

Te dejo un codigo mio un poco antiguo, te aconsejo que lo agas con divs!!
Código PHP:
$consulta mysql_query("SELECT * FROM .....",$link);

    
$i 1;
    echo 
"<tr>";
    while(
$ver mysql_fetch_assoc($consulta))
    {    
    echo 
"<td ><a href='index.php?pag=foto&img=".$ver['titulo']."&p=1'><img  width='120' height='120' style='border:1px black solid' src='img/".ucfirst($ver['tipo'])."_".$ver['titulo'].".jpg'></td></a>";
    if(
$i&#37;4==0)
    
echo "</tr><tr>";                                                
    
$i++;
    }