prepare("SELECT * FROM community WHERE ULAND=:land AND UREGBEZ=:regbez AND UKREIS=:kreis AND UGEMEINDE=:gemeinde"); $result->bindParam(":land",$numLand); $result->bindParam(":regbez",$numRegbez); $result->bindParam(":kreis",$numKreis); $result->bindParam(":gemeinde",$numGemeinde); $result->execute(); if ($row = $result->fetch(PDO::FETCH_ASSOC)) { $strName=$row['Name']; $numFlaeche=$row['Flaeche']; $numPopulation=$row['Einwohner']; } $strLocation=" AND ULAND=$numLand AND UREGBEZ=$numRegbez AND UKREIS=$numKreis AND UGEMEINDE=$numGemeinde "; //Unfallzahlen $strWhat=" SUM(UKATEGORIE=1) as Tote, SUM(UKATEGORIE=2) as Schwerverletzte, SUM(UKATEGORIE=3) as Leichtverletzte, COUNT(*) as gesamt"; $strWhere= " IstRad=1 "; $strSQL="SELECT $strWhat FROM data WHERE $strWhere AND ULAND=:land AND UREGBEZ=:regbez AND UKREIS=:kreis AND UGEMEINDE=:gemeinde AND UJAHR=:jahr"; $result= $db->prepare($strSQL); $result->bindParam(":land",$numLand); $result->bindParam(":regbez",$numRegbez); $result->bindParam(":kreis",$numKreis); $result->bindParam(":gemeinde",$numGemeinde); $result->bindParam(":jahr",$numJahr); $result->execute(); if ($row = $result->fetch(PDO::FETCH_ASSOC)) { $numTote=$row['Tote']; $numSchwerverletzte=$row['Schwerverletzte']; $numLeichtverletzte=$row['Leichtverletzte']; $numGesamt=$row['gesamt']; } ?> Fahrrad-Unfallstatistik NRW

Fahrradunfälle in

Einwohnerzahl:   Fläche: km2

Unfallzahlen

Unfall mit Getöteten
Unfall mit Schwerverletztem
Unfall mit Leichtverletztem
Gesamt
Quote pro Tausend Einwohner
Quote pro Fläche /km2

Unfallbeteiligte

Unfalltyp

Unfallart