title: PHP image display
body: <p>I made this code to display an image. The link to the image is in the database and the image is stored in a folder called uploads in the root. I am getting a broken image displayed back but no error. Any help would be much appreciated. thanks</p>
  
  <pre><code>$sql= "SELECT image FROM images";
  $res= mysql_query($sql);
  while($row=mysql_fetch_array($res))
  {
  echo("&lt;td&gt;&lt;img src=/uploads/". $row['image'] ." width = 100&lt;/td&gt;&lt;br&gt;");
  }
  </code></pre>