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, 2018 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, 2018 Kool -
Daniel
Hej, ostatnio szukałem sposobu na oderwanie się od codziennych obowiązków i trafiłem na coś interesującego. Po serii nieudanych prób w kasynie online postanowiłem zaryzykować więcej i spróbowałem spinmacho. Dla graczy z Polska kasyno oferuje specjalne bonusy, a sama rozgrywka okazała się naprawdę wciągająca. Zaskoczyło mnie, jak przyjemnie można spędzić czas, a małe wygrane dodały dodatkowego dreszczyku emocji i poprawiły humor po całym dniu.
Posted Jan 25 Kool