Re: Is displaying image in php tough?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm assuming that you have the image uploaded into a directory on the server.

All you need to do is have the html tags:

print "<img src='folderofsource/" . $image . "'>"

----- Original Message ----- From: "Chris Carter" <chandan9sharma@xxxxxxxxx>
To: <php-db@xxxxxxxxxxxxx>
Sent: Thursday, October 11, 2007 10:16 AM
Subject:  Is displaying image in php tough?



I am trying to fetch the image from the database image field.

Fetching it from

$image=mysql_result($result,$i,"image");

And displaying it with:

../stores-images/

I know it requires some if else or array to display. This is new for me.

Please help!

Chris
--
View this message in context: http://www.nabble.com/Is-displaying-image-in-php-tough--tf4607902.html#a13158056
Sent from the Php - Database mailing list archive at Nabble.com.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux