Page 1 of 1
imgcreate question
Posted: Mon Nov 22, 2010 6:09 am
by michael_bates
Hi i have created a graph using the imgcreate() fuction. The graph works fine when on its own page i was looking for some help on how to get it onto another page, any help would be appriciated thanks.
Re: imgcreate question
Posted: Mon Nov 22, 2010 7:59 am
by adil
<img src="Image.php" >
Re: imgcreate question
Posted: Wed Nov 24, 2010 6:02 am
by michael_bates
Hey thanks for the reply that worked. But now i am facing another problem.
My graph is shown by image and then below has a link to view it on another page.
So the problem i am facing is when going to graph.php i pass the variables through the url by doing.
Code: Select all
echo "<a href='graph.php?mark1=$mark1&mark2=$mark2&mark3=$mark3&mark4=$mark4'>Click here</a>";
However when doing
Code: Select all
<img src"graph.php?mark1=$mark1&mark2=$mark2&mark3=$mark3&mark4=$mark4"/>
It does not show the graph with the bars going up with the correct values. In actual fact it places the values which should be an integer to $mark1, $mark2, $mark3 and $mark4.
Does anyone have any solution to how i can acctually pass the value to this page and get the graph to draw correctly when using <img src>
Any help would be appricated
Thanks MIchael.