Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/04/2010, 14:37
Avatar de santris
santris
 
Fecha de Ingreso: agosto-2009
Ubicación: Sant Feliu de Llobregat
Mensajes: 955
Antigüedad: 14 años, 9 meses
Puntos: 66
Respuesta: Rotacion de imagenes

No he probado el código, es solo un ejemplo de como hacerlo con variables GET.

Código PHP:
<?php
while($reg_buscador=mysql_fetch_array($ejecutaconsulta)){ 
echo 
"<table>
<tr>
<td colspan='4' align='center'><a href=mi_otra_pagina.php?img="
;
if(isset(
$_GET['img'])
    echo 
$_GET['img']."><img src='img_subidas_mini/".$_GET['img']." width=300 height=300></a></td>";
else
    echo 
$reg_buscador['foto1']."><img src='img_subidas_mini/".$reg_buscador['foto1']." width=300 height=300></a></td>";
    
    echo 
"<td height='10%'><b>Marca</b></td>
</tr>

  <tr>
    <td rowspan='3'><a href=mi_pagina.php?img="
.$reg_buscador['foto2']."><img src='img_subidas_mini/$reg_buscador[foto2]' width=80 height=67></a></td>
    <td rowspan='3'><a href=mi_pagina.php?img="
.$reg_buscador['foto3']."><img src='img_subidas_mini/$reg_buscador[foto2]' width=80 height=67></a></td>
    <td rowspan='3'><a href=mi_pagina.php?img="
.$reg_buscador['foto4']."><img src='img_subidas_mini/$reg_buscador[foto2]' width=80 height=67></a></td>
    <td rowspan='3'><a href=mi_pagina.php?img="
.$reg_buscador['foto5']."><img src='img_subidas_mini/$reg_buscador[foto2]' width=80 height=67></a></td>
  </tr>
</table>"
;

?>
__________________
Tu álbum de cromos online!!