Paarungsergebnisse vorbereitet

This commit is contained in:
R40fendt
2025-05-06 11:25:48 +02:00
parent 899d7c4fc6
commit 3bf2bf53a2
3 changed files with 37 additions and 0 deletions

16
bulitipp/paarungen.php Executable file
View File

@@ -0,0 +1,16 @@
<?php
include("./check.php");
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json");
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]]);
}
$result=["reload"=>$reload,"data"=>$data];
echo json_encode($result, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);