title: php displaying image from stored path?
body: <p>UPDATE.</p>
  
  <p>I can only display the images inside a query e.g.</p>
  
  <pre><code>if($Result = mysqli_query($Link, $Query)){
  while($row = mysqli_fetch_array($Result))
  {
  $img = $row['path'];
  echo '&lt;img src="'.$img.'"&gt;'; 
  }
  }
  </code></pre>
  
  <p>I want to display them inside a table but this code doesn't work :</p>
  
  <pre><code>&lt;td class="tcgimagecell" colspan="5"&gt;&lt;?php echo '&lt;img src="'.$img.'"&gt;'; ?&gt;&lt;/td&gt;
  </code></pre>
  
  <p>BELOW ISSUE RESOLVED  :</p>
  
  <p>I have images stored in a folder (uploads) and the path is stored in a database table in a field named path. I am trying to display the stored images.</p>
  
  <pre><code>$Link = mysqli_connect($Host, $User, $Password, $Database);
  $Query = "SELECT * FROM $images";
  
  if($Result = mysqli_query($Link, $Query)){
  while($row = mysqli_fetch_array($Result))
  {
  $img = "uploads/" . $_FILES["file"]["name"];
  echo '&lt;img src="'.$img.'"&gt;';
  }
  }
  </code></pre>