gosh, have been tackling this manually and it's not much fun (given the time I have available)
attached is my copy of dbsql. I have the passwords stored in it normally, I've taken these out 🙂
but my code really is what I had before:
<?php
//WORKS IF i COMMENT OUT THIS LINE
include('dbsql.php');
//replace the array with manual data, no change in visible result
$xdata1 = array("2003-03",
"2003-02",
"2003-01",
"2002-12",
"2002-11",
"2002-10",
"2002-09",
"2002-08",
"2002-07",
"2002-06",
"2002-05",
"2002-04");
$chart_data = array( array(2, 65),
array(4, 156),
array(17, 149),
array(27, 245),
array(35, 267),
array(81, 245),
array(170, 272),
array(146, 309),
array(0, 0),
array(0, 0),
array(0, 0),
array(0, 0)
);
$legend = array("ddr", "pcpmsales");
$agentColors = array("red", "green");
include ("./classes/phpchartplus.php");
$im=new phpchartplus("png","bar",500,350,30,20);
$im->set_chart_data(6,$chart_data);
$im->set_x_labels_data(" ");
$im->set_x_labels_data($xdata1, true);
$im->set_y_labels_data(0,350,"round");
$im->set_chart_properties("lightgrey","black","black","white","",0);
$im->set_bar_color($agentColors);
$im->set_font_properties(5,6);
$im->chart_title("Downloads per Agent per Month");
$im->set_data_status($legend);
$im->create_chart();
?>