title: How to display image from database using php
body: <p>I am trying to display an image coming from the database and I was not able to display the image .but its showing like this <code>user-1.jpg</code> Please see my code can one guide me how to display the image.</p>
  
  <pre><code>$sqlimage = "SELECT image FROM userdetail where `id` = $id1";
  $imageresult1 = mysql_query($sqlimage);
  
  while($rows = mysql_fetch_assoc($imageresult1))
  {       
      $image = $rows['image'];    
      print $image;
  }
  </code></pre>