LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-17-2010, 05:35 PM   #1
conesh
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:

images/example1.png

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.

Regards.

Conesh.
 
Old 06-17-2010, 10:30 PM   #2
paulsm4
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
conesh
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.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 01:17 AM.

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