Ver Mensaje Individual
  #8 (permalink)  
Antiguo 05/07/2014, 07:40
Avatar de Italico76
Italico76
 
Fecha de Ingreso: abril-2007
Mensajes: 3.303
Antigüedad: 17 años, 1 mes
Puntos: 292
Respuesta: Registros de base de datos en table

Y los arreglos donde quedaron ? ejemplo.jpg sera siempre la misma imagen....... para eso no usamos PHP

Asi:

Código PHP:
Ver original
  1. <?php foreach ($imagenes as $key => $img_bloque): ?>
  2. <?php $id_bloque=$id[$key];  ?>
  3. <tr>
  4.     <td><a href="http://xxx.com/path?id=$id_bloque[0]"><img src="http://xxx.com/path/$img_bloque[0].jpg"  alt=""/></a></td>
  5.     <td><a href="http://xxx.com/path?id=$id_bloque[1]"><img src="http://xxx.com/path/$img_bloque[1].jpg"  alt=""/></a></td>
  6.     <td><a href="http://xxx.com/path?id=$id_bloque[2]"><img src="http://xxx.com/path/$img_bloque[2].jpg"  alt=""/></a></td>
  7. <?php endforeach; ?>

Y te las ingenias desde ahora
__________________
Salu2!