Bläddra i källkod

poprawa bledu distinct

a.binder 9 år sedan
förälder
incheckning
6b0d07c117
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      SE/superedit-ANALIZA_WIDOKOW_RAPORT_DAILY.php

+ 1 - 1
SE/superedit-ANALIZA_WIDOKOW_RAPORT_DAILY.php

@@ -266,7 +266,7 @@ ANALIZA_WIDOKOW_RAPORT_DAILY <form action='' METHOD='GET'>
 	
 	
 	foreach ($RAPORT['TABLES_ALL'] as $RTH_I=>$RTH_A) {
-			$sql="select DISTINCT(A_STATUS) as VALUE, count(ID) as COUNT from ".$RTH_A." ";
+			$sql="select A_STATUS as VALUE, count(ID) as COUNT from ".$RTH_A." group by A_STATUS ";
 			$res = $db->query($sql);
 			//$r2 = $db->fetch_array($res);