i think ive seen how to do this... have a page named image.php?id=1 - the id should be the images corresponding id in the database. this page should send an image header and then the contents of the image - no need to use passthru.
then on the page where you want the pic to display, use <img src='image.php?id=3'> and that will display the image
good luck, tell me if that works...
-paul
http://xhawk.net