Startseite und Galerie API hinzugefügt
This commit is contained in:
23
get_forms.php
Normal file
23
get_forms.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
|
||||
include("rowforeach.php");
|
||||
include("../mysqlverbinden.php");
|
||||
|
||||
$result=[];
|
||||
|
||||
foreach (srowforeach("SELECT * from `ritzenbergen-formulare`;",[]) as $key => $value) {
|
||||
array_push($result, [
|
||||
"id" => $value[0],
|
||||
"ueberschrift" => $value[1],
|
||||
"minitext" => $value[2],
|
||||
"inhalt" => $value[3],
|
||||
"labelone" => $value[4],
|
||||
"labeltwo" => $value[5],
|
||||
"modalueberschrift" => $value[6],
|
||||
"public" => $value[7]==1,
|
||||
"timestamp" => $value[8]
|
||||
]);
|
||||
}
|
||||
|
||||
echo json_encode($result, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
|
||||
Reference in New Issue
Block a user