PDA

View Full Version : Calling images from database


Chris Gwynne
01-16-2003, 11:22 PM
This is not related to vBulletin, but I thought I might ask for help here.

What I want to do is be able to upload images to a database then call and display that image on a page using something like this /thumbviewer.php?ID=5 as the URL path to that image.

Now, I believe I have the uploading feature sorted. But I'm unsure what code I would have in the thumbview.php page. :bored:

Can anybody help?

Thanks :glasses:

EDIT: I know the basics of PHP but I'm no guru at it. So any code you may give me it will need to be in full.

mr e
01-17-2003, 02:20 AM
well if your calling it from a mysql db then i think you could do


mysql_query ("SELECT * FROM image WHERE id=$id");


and just make sure that each image has it's own id and use regular html to display the image...hope this helps