For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > October 2007 > Re: [PHP-DB] Is displaying image in php tough?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Is displaying image in php tough?
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
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com