You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I trying to load data from sql and print on the website with koolreport. I have 5 output with this sql on phpmyadmin:
SELECT NUMOFNG, NUMOFATTEMPT, AVGTACTTIME, MODULE, RESULT FROM TTLTVNG WHERE RESULT='NG' AND MODULE='24' UNION ALL SELECT 'OK 1',SUM(NUMOFATTEMPT), AVG(AVGTACTTIME), MODULE, RESULT FROM TTLTVNG WHERE RESULT='OK' AND MODULE='24'
but the graph only print 3 of it every time.
Number of NG
Total TV
Average TIME(s)
1
1
30.10
3
3
6.93
OK 1
357
9.05
my code:
protected function setup()
{
$this->src('sakila_rental')
->query("SELECT NUMOFNG, NUMOFATTEMPT, AVGTACTTIME, MODULE, RESULT FROM TTLTVNG WHERE RESULT='NG' AND MODULE='24' UNION ALL SELECT 'OK 1',SUM(NUMOFATTEMPT), AVG(AVGTACTTIME), MODULE, RESULT FROM TTLTVNG WHERE RESULT='OK' AND MODULE='24'")
I trying to load data from sql and print on the website with koolreport. I have 5 output with this sql on phpmyadmin:
SELECT
NUMOFNG
,NUMOFATTEMPT
,AVGTACTTIME
,MODULE
,RESULT
FROM TTLTVNG WHERE RESULT='NG' ANDMODULE
='24' UNION ALL SELECT 'OK 1',SUM(NUMOFATTEMPT), AVG(AVGTACTTIME),MODULE
,RESULT
FROM TTLTVNG WHERE RESULT='OK' ANDMODULE
='24'but the graph only print 3 of it every time.
my code:
protected function setup()
{
$this->src('sakila_rental')
->query("SELECT
NUMOFNG
,NUMOFATTEMPT
,AVGTACTTIME
,MODULE
,RESULT
FROM TTLTVNG WHERE RESULT='NG' ANDMODULE
='24' UNION ALL SELECT 'OK 1',SUM(NUMOFATTEMPT), AVG(AVGTACTTIME),MODULE
,RESULT
FROM TTLTVNG WHERE RESULT='OK' ANDMODULE
='24'")view.php
How did this happen? What can I do to solve it?
The text was updated successfully, but these errors were encountered: