Hi
I have been trying to create a graph using data taken from my database. The data is from 3 selected rows, each row has 4 columns. Here is the code:-
$query=mysql_query(“SELECT * FROM profilereport WHERE profilereport.profilereportid=$value”);
$_SESSION['rows']=array(); $_SESSION['row']=array();
while ($row=mysql_fetch_row($query))
{
array_push($_SESSION['rows'], $row);
}
foreach($_SESSION['rows'] as $row)
{
for($x=0; $x<4; $x++) //test echo results to screen
{
echo $row[$x];
}
}
The graphing program I am using is JpGraph and trying to implement the following code and graph:-
Test suite for JpGraph - new_bar1.php
My question is, how do I take the data from my array and use it to create the graph?
Any help/suggections would be greatly appreciated
Thanks, Shane