Re: Problems with images..

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

 



Anders Norrbring wrote:

> I've been staring myself blind, so now I don't get anywhere, please do
> advice..
> 
> I have a web page printed with PHP, in a table I need to display
> images that are stored in a SQL DB.
> Getting the images into variables isn't an issue at all, but how do I
> output it?
> This is what I want to accomplish:
> 
> <tr><td>Current image:</td><td> - THE IMAGE HERE - </td></tr>
> 
> Starting to pull my hair..
> Anders.

<img src="fetchimg?id=<nnnnn>"/>

fetchimg.php:

header('Content-Type: image/jpeg');
$img=<fetch from db>;
print $img;


/Per Jessen, Zürich


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux