Getting a broken image link icon.
Can you explain the image source portion of tag - particularly , "", ?
Main Topics
Browse All TopicsWhat's easiest way to display a jpeg from a database path?
Attached is code used to store images into directory and info/path into database.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: SandmanNetPosted on 2008-12-31 at 03:09:17ID: 23269152
What I understand of your question is that you have an image at (for example) "/var/www/gallery/gallery1 /12345.jpg " and that value is stored in a MySQL table by using this code. And your question is how you display that image on a web page?
Well, if I understand it correctly - when you fetch the data from the DB, you get the aforementioned path, just remove $_SERVER["DOCUMENT_ROOT"] from it, and you have a browseable path for the web client. That would end up with:
Select allOpen in new window