Points are now only counted if it is selected

This commit is contained in:
Grisu
2022-09-04 16:51:47 +02:00
parent 0f221c9303
commit 83c62d0015
4 changed files with 32 additions and 1 deletions

View File

@@ -37,9 +37,15 @@ function generate_password_hash($password, $salt) {
function load_stations_table($con) {
$stmt = get_stations_all($con);
foreach($stmt->fetchAll() as $row) {
if ($row['gewertet'] == '1') {
$checked = "ja";
} else {
$checked = "nein";
}
echo "<tr id=\"" . $row['s_id'] . "\">";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['standort'] . "</td>";
echo "<td>". $checked . "</td>";
echo "</tr>";
}
}