one way to store and view photos is this:
create an image folder on your server
add a field to the db for the image url
create an php page with a your query and a dynamic image. for the dynamic image you just set the image source to the url field in your recordset.
if you have any more detailed questions you can contact me through my site at
digitalus media