show teams table and terminate db connection
This commit is contained in:
@@ -73,4 +73,15 @@ function get_stations($con) {
|
||||
} catch(PDOException $e) {
|
||||
handle_pdo_exceptio($e);
|
||||
}
|
||||
}
|
||||
|
||||
function get_teams($con) {
|
||||
try {
|
||||
$stmt = $con->prepare("SELECT name, feuerwehr FROM Mannschaft");
|
||||
$stmt->execute();
|
||||
$stmt->setFetchMode(PDO::FETCH_ASSOC);
|
||||
return $stmt;
|
||||
} catch(PDOExeption $e) {
|
||||
handle_pdo_exception($e);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user