Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-17-2010, 05:35 PM   #1
LQ Newbie
Registered: Aug 2008
Location: Mexico
Distribution: fedora core 9
Posts: 7

Rep: Reputation: 0
Question Show images from a database result.

Hi everyone, I was wondering if I can show an image on our php site if we store the path to it.

For example if we get the result form my sql as:


and the handle the result as common html.

< img src="databaseresult" width="173" height="188" border="1" / >

is this possible? do you think theres a better way to do it?

we need to store the images locally we cant use a blob space on the table.

Any help will be apreciated.


Old 06-17-2010, 10:30 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Not only is it possible - it's actually the PREFERRED solution.

Go for it!
Old 06-25-2010, 04:27 PM   #3
LQ Newbie
Registered: Aug 2008
Location: Mexico
Distribution: fedora core 9
Posts: 7

Original Poster
Rep: Reputation: 0
Great, thanks for your help.

Have a great day.


help, mysql, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
show for-loop result in one zenity dialog Dr_Death_UAE Programming 3 11-01-2009 03:04 PM
apache virtual host, images don't show newuser455 Linux - Software 4 07-14-2009 10:18 AM
Thunderbird news group images don't show dannybpng Linux - Software 0 04-08-2007 04:05 AM
graphical reports show broken images Draithon Linux - General 8 03-02-2005 04:35 PM
result set Database problem dai Programming 8 04-11-2003 05:11 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration