Get KoolPHP UI with 30% OFF!

MySQL data into Chart

I put MySQL data into an array:
$results[0]["kount"]; // 1
$results[1]["kount"]; // 25
$results[2]["kount"]; // 2
$series->ArrayData(array(1,25,2)); // Hard coded numbers work just fine.
How do I get the 3 numbers in my MySql $results array in $series?
I tried:
$series-> ArrayData(array($results[0]["kount"],$results[1]["kount"],$results[2]["kount"])); //This does not work !
Posted Mar 17 Kool
Figured it out. I had to specify that my MySQL data was in fact numeric -- then everything started working.
Posted Mar 17 Kool -