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

15
bulitipp/ergebnisse.php Executable file
View File

@@ -0,0 +1,15 @@
<?php
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json");
include("./check.php");
$data=[];
$paarungsids=srowforeach("SELECT id from `buli-paarungen` where `spieltag`=?;",[getmaxspieltag()]);
foreach ($paarungsids as $key => $value) {
$paarungsid=$value[0];
array_push($data,getResult($paarungsid, getmaxspieltag()));
}
$result=["reload"=>$reload,"data"=>$data];
echo json_encode($result, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);