I am just editing the Naked example of pChart, I have setup all of my MySQL information to retrive the AddPoints from the database.
This uses something like the below.
$DataSet->AddPoint(array(1,2,3,4,5,6,7,8,9));
When I attempt to do
$var = '1,2,3,4,5,6,7,8,9';
$DataSet->AddPoint($var);
It doesn't work, but when I do
$var = array('1,2,3,4,5,6,7,8,9');
$DataSet->AddPoint($var);
it does work.
I have also tried:
$var2 = "1,2,3,4,5,6,90";
$var = array("$var2");
$DataSet = new pData;
$DataSet->AddPoint($var);
Any suggestions?