How do you use PHP and MySQL to make ID-linked images?

Ninjiangstar

New member
I have one image, and I want multiple users on my site to "own" this same image with their own specific ID number, so that it doesn't use my main image URL.
So rather than displaying http://www.example.com/image.png I want something like
http://www.example.com/image.php?id=1 that can be used as an image, not just displaying it (so it works through <img> tags)
And using apache .htaccess, I can rename it to be http://www.example.com/1.png or something similar varying by ID #... if you get what I mean...
It's just grabbing the image whenever it's accessed and displaying that image, but I need help getting that to work. So basically, it's not displayed through an img tag, but can the link can be accessed as an image through the img tag on a 3rd party website. I hope you know what I'm talking about and help me out here! Thanks!
 
Back
Top