I'm trying to incorporate a chart class in my PHP script.
The chart class requires that series labels are defined like this:
Code: Select all
$graph->labels = "Jan.,Feb.,Mar.,Apr.,May";Code: Select all
$graph->values = array("Jan.,Feb.,Mar.,Apr.,May");I'm using the following code:
Code: Select all
while($row=mysql_fetch_array($results)) {
$array_labels[] = array($row['labels']);
}Code: Select all
$graph->values = $array_labels;What am I doing wrong?