This question already has an answer here:
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
$sql= "SELECT image FROM images";
$res= mysql_query($sql);
while($row=mysql_fetch_array($res))
{
echo("<td><img src=/uploads/". $row['image'] ." width = 100</td><br>");
}
</div>