including generated png graph
Posted: Fri Oct 05, 2007 6:35 am
Hi there, first post with a question. Hope it's not too silly.
I've got a nice frame consisting of a table within a table, links to the left and whatever link is clicked on that php page is included on the right.
This has been working fine so far for a lot of things however I'm using a few pages to gather information via forms from a user which then go and query a db and generate a graph of the users' choice. This graph is a png file.
Now my problem is that i can only make a link to the png file and view solely the graph and nothing else however if i try and include the page which generates and displays the png file all i get is the code which one would get if they tried to open a png file using notepad in the middle of my table.
How do I get the image in the table and not the code "‰PNG ... etc"? Is it because I'm using include?
I've got a nice frame consisting of a table within a table, links to the left and whatever link is clicked on that php page is included on the right.
This has been working fine so far for a lot of things however I'm using a few pages to gather information via forms from a user which then go and query a db and generate a graph of the users' choice. This graph is a png file.
Now my problem is that i can only make a link to the png file and view solely the graph and nothing else however if i try and include the page which generates and displays the png file all i get is the code which one would get if they tried to open a png file using notepad in the middle of my table.
How do I get the image in the table and not the code "‰PNG ... etc"? Is it because I'm using include?