16 lines
480 B
PHP
Executable File
16 lines
480 B
PHP
Executable File
<?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);
|