I've learnt how to use classes.
I've learnt how to use the graphics (bargraphs etc).
Now to put them together. I think I'm missing something easy.. but here goes:
I have a file called graphclass.php which has my class graph. I also have a file called trial1.php which includes graphclass.php.
class graph includes two functions:
bargraph() and piegraph().
Problem 1) the Header tag
header("Content-Type: image/png");
can only be defined once. so if I try to call bargraph() and piegraph() from the same file it sees the Header defined twice.
Problem 2) Unless I use
ImagePNG($im, "test.png");
in graphclass.php and <IMG SRC = "test.png" Border = 0 > in trial1.php I can't display the graphs...
Any ideas?
Thanks :-)