RE: [PHP] Show an image
| From: | James E. Hicks III | Date: | Wed, 29 May 2002 17:34:44 +0000 |
| Subject: | RE: [PHP] Show an image | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99779@lists.php.net to get a copy of this message | ||
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:felix@uva.es]
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.