Compare commits
2 Commits
bbb5ebcbac
...
34ae68bfdc
Author | SHA1 | Date | |
---|---|---|---|
34ae68bfdc | |||
1f2789eead |
@ -69,7 +69,23 @@ class TagesplanModel extends Database
|
||||
public function getGerichteOnTag()
|
||||
{
|
||||
|
||||
$pdo = $this->linkDB();
|
||||
|
||||
$datum = $_GET["datum"];
|
||||
|
||||
$sql = "SELECT * FROM Gericht LEFT JOIN GibtsAm ON Gericht.id = GibtsAm.gid LEFT JOIN Tagesplan ON GibtsAm.tid = Tagesplan.id WHERE Tagesplan.datum = $datum";
|
||||
|
||||
try {
|
||||
$stmt = $pdo->prepare($sql);
|
||||
$stmt->execute();
|
||||
} catch (\PDOException $e) {
|
||||
echo $sql . " This do be faulty";
|
||||
return false;
|
||||
}
|
||||
|
||||
$result = $stmt->fetchAll(\PDO::FETCH_ASSOC);
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user