Backend für Modals hinzugefügt

This commit is contained in:
R40fendt
2025-06-16 21:42:22 +02:00
parent b0c810ac94
commit db064b36c0
6 changed files with 173 additions and 20 deletions

View File

@@ -7,8 +7,8 @@ if(!isset($_GET["spieltag"])) die("GET spieltag fehlt");
$spieltag=$_GET["spieltag"];
$data=[];
foreach (srowforeach("SELECT `heim`,`gast` from `buli-paarungen` where `spieltag`=?;",[$spieltag]) as $key => $value) {
array_push($data,[$value[0],$value[1]]);
foreach (srowforeach("SELECT `heim`,`gast`, `id` from `buli-paarungen` where `spieltag`=?;",[$spieltag]) as $key => $value) {
array_push($data,[$value[0],$value[1],$value[2]]);
}
$result=["reload"=>$reload,"data"=>$data];