Jump to content

image does not change when thumbnail is clicked


desertdirk

Recommended Posts

When the thumnails are click only the first photo in the array shows. I have been unable to figure out where the problem is:

http://plsnm.com/info.php?id=467& f=1239807849_offer_DSC02197.JPG

 

here is the code snippet

if(!empty($a1[image]))

{

//$MyImages = explode("|", $a1[image]);

 

$ShowInfo .= "<table valign=top align=center height=50><tr>";

 

while(list(,$v) = each($im_array))

{

 

 

$ShowInfo .= "<td align=center valign=top width=\"50\" height=50><a href=\"info.php?id=$_GET[id]& f=$v\"><img src=\"re_images/$v\" width=50 height=50 border=0></a></td>";

}

 

$ShowInfo .= "</table><hr size=1 width=\"95%\" color=#336699><br>";

 

 

if(!empty($f))

{

$ShowInfo .= "<center><img src=\"re_images/$f\" height=480 width=640></center><br>";

}

else

{

$ShowInfo .= "<center><img src=\"re_images/$im_array[0]\" height=480 width=640></center><br>";

}

 

}

else

{

$ShowInfo .= "<br><center><img src=\"no_image.gif\"></center>";

}

 

any help is greatly appreciated

DD

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.