diff --git a/app/model/Teamtable.php b/app/model/Teamtable.php index 7e11af4..7160ff9 100644 --- a/app/model/Teamtable.php +++ b/app/model/Teamtable.php @@ -28,14 +28,23 @@ class Teamtable return $sth->fetch(PDO::FETCH_ASSOC); } - public function updateTeamByID(int $id, array $params): void + // why this is so long who cares??? + public function updateTeamByID( + int $id, + string $LagNavn, + string $Bedrift, + string $Kortnummer, + string $Lagleder, + int $Telefon, + string $Deltagere, + int $Runder + ): void { - // todo ... - $sth = $this->dbh->prepare('UPDATE lagtabell SET WHERE LagID = ?'); - $sth->execute([$params]); + $sth = $this->dbh->prepare('UPDATE lagtabell SET LagNavn = ?, Bedrift = ?, Kortnummer = ?, Lagleder = ?, Telefon = ?, Deltagere = ?, Runder = ? WHERE LagID = ?'); + $sth->execute([$LagNavn, $Bedrift, $Kortnummer, $Lagleder, $Telefon, $Deltagere, $Runder, $id]); } - public function addTeam(int $id, array $params): void + public function addTeam(): int { // todo ... } diff --git a/app/view/pages/simulator.php b/app/view/pages/simulator.php index 573ca4f..a61f735 100644 --- a/app/view/pages/simulator.php +++ b/app/view/pages/simulator.php @@ -1,7 +1,7 @@
Skriv inn et kortnummer: