title: Display image in php
body: <p>how to display image in html by retrieving it from mysql database.</p>
  
  <p>i have the following code but only text is being displayed in place of image.
  How to display the image instead of the text of image.</p>
  
  <p>Code:</p>
  
  <pre><code>while ($row = mysql_fetch_assoc($result))
  {
      //echo "&lt;div&gt;";
      //echo "&lt;div class=\"slide-image\"&gt;";
      print $row['Image'];
      //echo "&lt;/div&gt;";
      echo "&lt;div class=\"slide-text\"&gt;";
      echo $row['Head'];
      echo $row['Description'];
      //echo "&lt;/div&gt;";
      //echo "&lt;/div&gt;";
  }
  </code></pre>
  
  <p>It displays the resulting JPEG as text, which as you might imagine is very difficult to interpret.</p>