title: PHP echo to display image HTML
body: <p>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:</p>
  
  <pre><code>&lt;a href="gallery.php?image=image01"&gt;......&lt;/a&gt;
  </code></pre>
  
  <p>My PHP script is thus:</p>
  
  <pre><code>&lt;?php 
  $result = $_GET['image'];
  echo '&lt;img src="images/gallery/'.$result.'.jpg"&gt;'; 
  ?&gt;
  </code></pre>
  
  <p>So what I am trying to achieve in terms of HTML is:</p>
  
  <pre><code>&lt;img src="images/gallery/image01.jpg"&gt;
  </code></pre>
  
  <p>The result I am getting is '"; ?>' displayed on the page.
  Any help would be much appreciated!</p>