desertdirk Posted November 24, 2009 Share Posted November 24, 2009 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 Link to comment https://forums.phpfreaks.com/topic/182844-image-does-not-change-when-thumbnail-is-clicked/ Share on other sites More sharing options...
sasa Posted November 25, 2009 Share Posted November 25, 2009 1st change $f to $_GET['f'] in your links you have %20 (space) change it to & Link to comment https://forums.phpfreaks.com/topic/182844-image-does-not-change-when-thumbnail-is-clicked/#findComment-965249 Share on other sites More sharing options...
desertdirk Posted November 25, 2009 Author Share Posted November 25, 2009 I am sorry. Which instance of $f should I replace with $_GET['f']? DD Link to comment https://forums.phpfreaks.com/topic/182844-image-does-not-change-when-thumbnail-is-clicked/#findComment-965475 Share on other sites More sharing options...
sasa Posted November 26, 2009 Share Posted November 26, 2009 all Link to comment https://forums.phpfreaks.com/topic/182844-image-does-not-change-when-thumbnail-is-clicked/#findComment-965852 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.