Click to See Complete Forum and Search --> : problem with header


amahmood
12-24-2004, 06:43 PM
At last I managed to upload images to mysql database and display them using php header

header("Content-type: image/gif");
echo $fileContent;

Now the problem is that I can not countinue the page. What I mean is that I can only open a browser and display the image in it and nothing else.

I can not put any thing before the image as well. in this case I get "headers has already sent.

What do i do now?

Jona
12-24-2004, 06:58 PM
Include it as an IMG tag within other files.


<img src="img.php?img=xxx" alt="Image">

amahmood
12-24-2004, 07:26 PM
Originally posted by Jona
Include it as an IMG tag within other files.


<img src="img.php?img=xxx" alt="Image">


Thanks. I tested it and It is ok.

Jona
12-24-2004, 07:35 PM
Welcome.