Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying images without showing actual image file name?

Status
Not open for further replies.

sharapov

MIS
May 28, 2002
106
US
Let's say I have a database that has an &quot;ID&quot; field and &quot;Image&quot; field. When I display an image on the page instead of showing <img src=&quot;myimage.jpg&quot;> I want to show something like <img src=&quot;image.php?ID=1234>, where &quot;1234&quot; corresponds to the id of an image in the database. How can I do it?
 
just make your php script retrun the right header eg image/gif and then the data
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top