Question : Image from a php, GD?

I have a php script, this script is linked as an image from html pages,

<img src="mypage.php" />

This php page run a sql query and after that need to show an image. I tried something like this, run the sql query and after that set the header location to the image, it redirects. As you can assume it dsnt work :D

How to show an image in my html document using this php file.

PS:- the php page dsnt need to generate an image, it just runs the query and then shows an image, this image needs to be like an image :) (can be set as src in html)

Answer : Image from a php, GD?

Here are three files implementing the php image tag.  I just put the image return in the php file, you can add the database code above or below that.
Random Solutions  
 
programming4us programming4us