displaying image using a name stored in mysql database.
Posted: Sun Jul 22, 2007 12:05 pm
I am trying to make a news page with a picture for each news item. I have uploaded the picture and inputed the news story to the database. I'm having trouble displaying the image. I'm using this at the moment:
echo "<img src=".$row['imgname'];" />";
but i need to add ./images/ to it. I've tried
echo "<img src=""./images/".$row['imgname'];" />"; but to no avail.
the top code displays a box where an image should be.
any ideas?
echo "<img src=".$row['imgname'];" />";
but i need to add ./images/ to it. I've tried
echo "<img src=""./images/".$row['imgname'];" />"; but to no avail.
the top code displays a box where an image should be.
any ideas?