Hi,
This is my first post.
I am developing a php webpage using mysql database. In my page, I shows several tables from different data source. Right now, I wants to insert a dynamic created image nearby one one of these tables (at the middle of the page). So I used php (compiled with GD) image functions to create this image and called it from a page with a tag like: <img src="imagedata.php?Var=$Var">. In imagedata.php file, for showing the images, I need use the header() function like : header("Content-type: image/png"). The images function works well ,but the rest content of my page can't be display on this page, because of the using header("Content-type: image/png").
Because the header() function just can send one kind of Content-type to the server, so it cause me a problem to insert my dynamic created images within an existed page (in the
middle of the page rather than at the end).
My question is how to insert a dynamic created image within a text webpage(at the middle of this page).
Any help or direction would be greatly appreciated.
Jian