title: Using PHP (PDO) to show image (blob) from mysql database in HTML image tag
body: <p>i have a small problem with my code.
  I'm trying to show an image out of my database on my homepage using php (pdo). 
  Problem is: I don't really know how to let insert the variable of the image in the HTML img tag.
  Where is my mistake / How can I fix it?</p>
  
  <p>I am saving the images in my mysql database as a blob (largeblob) and all images are .jpg and / or .png</p>
  
  <pre><code>&lt;?php
    $db = new Dbh;
    $pdo = $db-&gt;connect();
    $counter = 0;
    $content = "";
  
    $statement = $pdo-&gt;prepare('SELECT * FROM images');
    $statement-&gt;execute();
  
    while ($row = $statement-&gt;fetch()) {          ?&gt;
  
      &lt;img src = "&lt;?php echo $row['image']; ?&gt;"&gt;
  
    &lt;?php         }       
   ?&gt;
  </code></pre>
  
  <p>The thing happening right now is, is that html just shows some kind of bit code full of strange symbols</p>
  
  <p>Thanks for your help in advance!</p>