28 lines
658 B
PHP
28 lines
658 B
PHP
<?php
|
|
header("Access-Control-Allow-Origin: *");
|
|
include("../mysqlverbinden.php");
|
|
include("rowforeach.php");
|
|
|
|
|
|
$result=[];
|
|
|
|
foreach(srowforeach("SELECT * from `ritzenbergen-events`",[]) as $key => $value){
|
|
$id=$value[0];
|
|
$eventname=$value[1];
|
|
$datum=$value[2];
|
|
$type=$value[3];
|
|
$content=$value[4];
|
|
$link=$value[5];
|
|
$foto=$value[6];
|
|
array_push($result,[
|
|
"id" => $id,
|
|
"eventname" => $eventname,
|
|
"datum" => $datum,
|
|
"type" => $type,
|
|
"content" => $content,
|
|
"link" => $link,
|
|
"foto" => $foto
|
|
]);
|
|
}
|
|
|
|
echo json_encode($result,JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); |