shows table of avaiable Stations
This commit is contained in:
@@ -32,4 +32,14 @@ function generate_user_id($username, $salt) {
|
||||
function generate_password_hash($password, $salt) {
|
||||
$pword = $password . $salt;
|
||||
return hash('sha3-512', $pword);
|
||||
}
|
||||
|
||||
function load_stations_table($con) {
|
||||
$stmt = get_stations($con);
|
||||
foreach($stmt->fetchAll() as $row) {
|
||||
echo "<tr>";
|
||||
echo "<td>" . $row['name'] . "</td>";
|
||||
echo "<td>" . $row['standort'] . "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user