verlaufsgrafik

This commit is contained in:
Walter Hupfeld
2023-10-10 18:45:24 +02:00
parent 918dfb0630
commit d113c5bd09
7 changed files with 708 additions and 15 deletions

View File

@@ -75,6 +75,7 @@
require("../config.php");
$strSQL="SELECT d.title as Kreis,
district,
SUM(UJAHR=2022) as Jahr_2022,
SUM(UJAHR=2021) as Jahr_2021,
SUM(UJAHR=2020) as Jahr_2020,
@@ -106,7 +107,7 @@ $result=$db->query($strSQL);
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
echo "<tr>";
echo "<td>".$row['Kreis']."</td>";
echo "<td><a href='../index.php?d=".$row['district'],"'>".$row['Kreis']."</a></td>";
echo "<td class='l'>".$row['Jahr_2022']."</td>";
echo "<td>".$row['Jahr_2021']."</td>";
echo "<td>".$row['Jahr_2020']."</td>";
@@ -133,7 +134,7 @@ while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
<script>
let table = new DataTable('#unfallzahlen',{
pageLength : 25
pageLength : 10
});
</script>
</div>