Get KoolPHP UI with 30% OFF!

MySQL data into Chart

michael
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 !
Thanks!!!
Posted Mar 17 Kool
michael
Figured it out. I had to specify that my MySQL data was in fact numeric -- then everything started working.
$cw[0]=intval($results[0]["kount"]);
Posted Mar 17 Kool -