title: php ,mysql image is not displaying from database
body: <p>image is not displaying from the database it show just showing broken image</p>
  
  <pre><code>&lt;?php
  $con = mysql_connect('localhost', 'root', ''); //Update hostname
  mysql_select_db("postad", $con); //Update database name
  $query = "SELECT path1 FROM img_tbl";
  $result = mysql_query($query) or die('Error : ' . mysql_error());
  $row = mysql_fetch_array($result);
  $photo = $row['path1'];
   echo "&lt;center&gt;&lt;img src=$photo alt=Profile Photo&gt;";
  ?&gt;
  </code></pre>