Testing #12
@ -73,7 +73,7 @@ class TagesplanModel extends Database
|
|||||||
|
|
||||||
$datum = $_GET["datum"];
|
$datum = $_GET["datum"];
|
||||||
|
|
||||||
$sql = "SELECT * FROM Tagesplan LEFT JOIN GibtsAm ON Tagesplan.id = GibtsAm.tid LEFT JOIN Gericht ON GibtsAm.gid = Gericht.id WHERE Tagesplan.datum = $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 {
|
try {
|
||||||
$stmt = $pdo->prepare($sql);
|
$stmt = $pdo->prepare($sql);
|
||||||
|
Loading…
Reference in New Issue
Block a user