This repository has been archived on 2023-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
web/app/model/Teamtable.php
2022-02-07 11:09:16 +01:00

17 lines
311 B
PHP

<?php
class Teamtable
{
public PDO $dbh;
public function __construct(Database $database)
{
$this->dbh = $database->conn;
}
public function getTable(): array
{
$sth = $this->dbh->query('SELECT * FROM lagtabell');
return $sth->fetchAll(PDO::FETCH_ASSOC);
}
}