----- Original Message ----- From: "raquibul islam" > Thanks bob it work.but still 1 problem. > $query = "SELECT image, image_type FROM $tbl_name WHERE image_id=".$_GE[i]; > this line dosent work. > so i put $query = "SELECT image, image_type FROM $tbl_name WHERE image_id=X"; > line where X=1,2,3,4..........
Don't know whether this was a typo by you or not. The groups re-sent messages are wrapping at 70 chars, and at the nearest space. This bit of the line isn't going to work, as it's not GETTING [i] <joke>. WHERE image_id=".$_GE[i]; The "T" is missing. Replace the line with this {I've used curly brackets this time} and this shouldn't get wrapped: $query = " SELECT image, image_type FROM $tbl_name WHERE image_id={$_GET['i']} "; You access other images by numbers: <div><img src="image.php?i=1" alt="Image Description" /></div> <div><img src="image.php?i=2" alt="Image Description" /></div> <div><img src="image.php?i=3" alt="Image Description" /></div> There is no error checking as this is just a very basic example, and if you've having trouble with it, you're not going to be able to make it safe for use on a live server. This is getting to be an exercise in sending emails. Regards, Bob.