Side Posted May 18, 2009 Share Posted May 18, 2009 Hi. I wrote an image upload, but i thin i messed up something. If i upload a file with one pic its ok but after that i upload a nother file with two pic it shows the sencond pic everywhere where it suppose to be one. this is the code $body_command = mysql_query("SELECT descr, image1, image2, seed_speed, seed_time FROM torrents WHERE id=".$row["id"]." "); $body = mysql_fetch_array($body_command); if($row["image1"] OR $row["image2"]) { if ($body["image1"] != "") { if($body["image1"] != "") $img1 = "<a href='torrents/images/$body[image1]' rel='shadowbox' target='_blank'><IMG src='torrents/images/".$row["image1"]."' width='150'height='120' border='0'></a>"; if($body["image2"] != "") $img2 = "<a href='torrents/images/$body[image2]' rel='shadowbox' target='_blank'><IMG src='torrents/images/".$row["image2"]."' width='150' height='120' border='0'></a>"; echo("<CENTER>Images:<br>". $img1 . "  ". $img2 . "</CENTER> "); } } could please someone give me a hint? Link to comment https://forums.phpfreaks.com/topic/158587-need-help-with-images-please/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.