Re: [PHP] Show an image

2002-05-29 Thread Tyler Longren

Is the image's location on the server saved in 'FIELD' or is the actual
image saved in 'FIELD'?

tyler

- Original Message -
From: Félix García Renedo [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Wednesday, May 29, 2002 12:08 PM
Subject: [PHP] Show an image


Hello everybody,
I want to know how to show an image saved into a field of a database
into a web page.
I tried to print img src=FIELD but it shows ascii codes.

Thanks in advance.



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




RE: [PHP] Show an image

2002-05-29 Thread James E. Hicks III

I found a solution to this on the web somewhere. What they did was create
image.php wich extracts your image from the DB and echo's it to the page after
sending the correct content type header. Then in your other .php's/.html's
use...
img src=image.php?name=TEST.jpg

James

-Original Message-
From: Félix García Renedo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 1:09 PM
To: php
Subject: [PHP] Show an image


Hello everybody,
I want to know how to show an image saved into a field of a database into a
web page.
I tried to print img src=FIELD but it shows ascii codes.

Thanks in advance.


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