| Alexander 2007-10-11, 7:00 pm |
| 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@yahoo.com>
To: <php-db@lists.php.net>
Sent: Thursday, October 11, 2007 10:16 AM
Subject: [PHP-DB] 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....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
>
|