Compare commits
No commits in common. "7a4affe6ac32922259cf210d09bfebbc7b083f50" and "55cc681f1f3284a0d76592835fa52074aa941c70" have entirely different histories.
7a4affe6ac
...
55cc681f1f
@ -87,20 +87,6 @@ function nl2br2($string) {
|
|||||||
global $db;
|
global $db;
|
||||||
global $arrUnfallart;
|
global $arrUnfallart;
|
||||||
global $arrUnfalltyp;
|
global $arrUnfalltyp;
|
||||||
global $arrCategory;
|
|
||||||
|
|
||||||
$strTable="<h5>Unfallkategorie</h5>";
|
|
||||||
$strTable.="<table class='statistik'>";
|
|
||||||
$strSQL="SELECT UKATEGORIE, count(UKATEGORIE) as anz FROM Unfallorte_Hamm WHERE ".$strWhere.$strYear." GROUP BY UKATEGORIE";
|
|
||||||
$result = $db->query($strSQL);
|
|
||||||
|
|
||||||
while ($row = $result->fetchArray()) {
|
|
||||||
$strTable.="<tr><td>".$arrCategory[$row['UKATEGORIE']]."</td><td>".$row['anz']."</td></tr>\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
$strTable.="</table>";
|
|
||||||
|
|
||||||
|
|
||||||
$strSQL="SELECT
|
$strSQL="SELECT
|
||||||
sum(IstRad) as rad,
|
sum(IstRad) as rad,
|
||||||
sum(IstPKW) as pkw,
|
sum(IstPKW) as pkw,
|
||||||
@ -113,9 +99,9 @@ function nl2br2($string) {
|
|||||||
WHERE ".$strWhere.$strYear;
|
WHERE ".$strWhere.$strYear;
|
||||||
|
|
||||||
$result = $db->query($strSQL);
|
$result = $db->query($strSQL);
|
||||||
$strTable.="<h5>Unfallbeteiligte</h5>";
|
|
||||||
$strTable.="<table class='statistik'>";
|
$strTable="<table class='statistik'>";
|
||||||
//$strTable.="<tr><th>Unfallbeteiligte</th><th>Anzahl</th></tr>";
|
$strTable.="<tr><th>Unfallbeteiligte</th><th>Anzahl</th></tr>";
|
||||||
while ($row = $result->fetchArray()) {
|
while ($row = $result->fetchArray()) {
|
||||||
$strTable.="<tr><td>Fahrräder</td><td>".$row['rad']."</td></tr>";
|
$strTable.="<tr><td>Fahrräder</td><td>".$row['rad']."</td></tr>";
|
||||||
$strTable.="<tr><td>PKWs</td><td>".$row['pkw']."</td></tr>";
|
$strTable.="<tr><td>PKWs</td><td>".$row['pkw']."</td></tr>";
|
||||||
|
Loading…
Reference in New Issue
Block a user