title: displaying same images from blob field php
body: <pre><code>&lt;?php
  while($query_row2=mysql_fetch_array($result))
      {
      $res=mysql_query("SELECT * FROM images WHERE er='".$query_row2['er']."' ORDER BY `sr` DESC") or die ("Error");
      $q=mysql_fetch_array($res);
      $_SESSION["id1"]=$q['iname'];
  ?&gt;
  
  
       &lt;img src="xyz.php" height="50" width="100"/&gt;
  &lt;?php
  
      }
  ?&gt;
  </code></pre>
  
  <p>xyz.php contains:</p>
  
  <pre><code>&lt;?php
  include("connection.php");
  session_start();
  $z= $_SESSION["id1"];
  header ("Content-type:image");
  echo $z;
  ?&gt;
  </code></pre>
  
  <p>this code is showing the same image which is stored for first $query_row2['er']...and all the images are shown same..</p>