Compare commits

..

No commits in common. "93e3b8e0c842be683759f3cfec382a8be2ca3d2a" and "40b6c85eb9bf8e1f9ab336603f20372315f65286" have entirely different histories.

View File

@ -69,23 +69,7 @@ class TagesplanModel extends Database
public function getGerichteOnTag() public function getGerichteOnTag()
{ {
$pdo = $this->linkDB();
$datum = $_GET["datum"];
$sql = "SELECT Gericht.id, Gericht.name, Gericht.preis, Gericht.beschreibung 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;
} }
} }