Yah, you use your php to write some html like:
<img src="$URL_OF_IMAGE" alt="comment">
The $URL_OF_IMAGE is the URL that you stored as a field in your database. The web browser that connects to this page then figures out decoding the image at that path for you.
You might want to take a look at the source of slooze (
http://www.slooze.com ) which is a simple php photo album that works this way - I use it myself!
HTH
--
Don't Stand on your head - you'll get footprints in your hair.
http://www.charlieharvey.org.uk