shows table of avaiable Stations
This commit is contained in:
@@ -62,4 +62,15 @@ function add_user($con, $username, $user_id, $user_group, $password, $salt) {
|
||||
} catch(PDOExeption $e) {
|
||||
handle_pdo_exception($e);
|
||||
}
|
||||
}
|
||||
|
||||
function get_stations($con) {
|
||||
try {
|
||||
$stmt = $con->prepare("SELECT name, standort FROM Station");
|
||||
$stmt->execute();
|
||||
$stmt->setFetchMode(PDO::FETCH_ASSOC);
|
||||
return $stmt;
|
||||
} catch(PDOException $e) {
|
||||
handle_pdo_exceptio($e);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user