I am trying to display an image on my webpage using a PHP script to determine which image is displayed.
The image link is as follows:
$result = $_GET['image'];
echo '<img src="images/gallery/'.$result.'.jpg">';
I would change the gallery.php to this:
<?php $result = $_GET['image']; ?> <img src="images/gallery/<?php echo $result; ?>.jpg">
That would simply it a little bit. You should echo out the result to see what you are getting when the variable is passed to the gallery page.