I'm trying to have my code display all pictures for a specific ID, this is the current code that is only showing a single picture to be displayed, how can I get it to display the others as well?
thanks
<?php
$id=$_REQUEST['id'];
$result=mysql_query("SELECT * FROM gallery_work_thumbnail WHERE id=$id");
while($row=mysql_fetch_array($result))
{
?>
<?php echo $row['img_title'];?>
<img src="<?php echo UPLOAD_URL.'gallery/'.$row['image_name']; ?>" id="thumb<?php echo $thumblocate[$i]['id'] ;?>" border="0" class="photo" width="100%" height="60%" />
<?php echo $row['img_des']; ?>
<?php } ?>