Okay now that i know MySar database name and stuff, i start to query some data off the database and tries to plug the variable into the 'pie_graph_example.php'. However i am not able to get the graph to display correctly. Or im doing it wrong ?
FYI the pie graph php is located in the same directory as the index.php of mysar
This is the coding for pie_graph_example.php
// calculate the base path of the program
// Common tasks for both web and cmd
$gdg = new GDGraph(500,300,"Activity Summary");
$allow='SELECT COUNT(resultCode) FROM traffic WHERE resultCode="TCP_MISS/200"';
$deny='SELECT COUNT(resultCode) FROM traffic WHERE resultCode="TCP_DENIED/403"';
$arr = Array(
'Allowed' => Array($result1,200,100,1000),
'Denied' => Array($result2,200,200,10),
$arr_3D = Array(
'First Trimester' => 15,
'Second Trimester' => 0,
i tried to the print $result. But the webpage shows a 'Array' word only. Help will be appreciated, thanks!