diff --git a/statistics/gemeinde_detail.php b/statistics/gemeinde_detail.php
new file mode 100644
index 0000000..540a209
--- /dev/null
+++ b/statistics/gemeinde_detail.php
@@ -0,0 +1,112 @@
+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'];
+ }
+
+ //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
+
+
+
+
+
+
+
+
+
+
+