title: Displays an image from the database, Picture does not Show using php
body: <blockquote>
    <blockquote>
      <p>Good evening experts :), i am learning to display images from database using php, i got problem. No error message but image not showing, please help.</p>
    </blockquote>
  </blockquote>
  
  <p>this my code headline.php :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  include 'koneksi.php';
  
  $tabel = 'isiberita';
  $sql=$conn-&gt;query("SELECT * from $tabel order by tanggal desc limit 3");
    while ($tampil = $sql-&gt;fetch(PDO::FETCH_ASSOC)) {
      echo "&lt;p align='justify&gt;'";
      echo "&lt;img src='$tampil[gambar]' aligen='left'&gt;";
      echo "&lt;font valign='top'&gt;";
      echo "&lt;strong&gt;";
      echo $tampil['judul'];
      echo "&lt;/strong&gt;";
      echo $tampil['tanggal'];
      $data=substr($tampil['isi'],0,200);
      echo $data;
      echo "&lt;a href='index.php?menu=detail_headline&amp;id=$tampil[id_berita]'&gt;&amp;nbsp; baca lengkap&gt;&gt;&gt;&gt;&lt;/a&gt;";
      echo "&lt;/font&gt;&lt;/p&gt;&lt;br&gt;";
    }
  
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This my image directory :
  C:\xampp\htdocs\portalberita\gambar</p>
  
  <p>This my headline.php directory :
  C:\xampp\htdocs\portalberita</p>
  
  <p><a href="https://i.stack.imgur.com/7tAJv.png" rel="nofollow noreferrer">This my value database :</a></p>
  
  <p><a href="https://i.stack.imgur.com/C56Xh.png" rel="nofollow noreferrer">This output :</a></p>