Formulare hinzugefügt

This commit is contained in:
R40fendt
2025-12-24 00:27:19 +01:00
parent 9e18989b42
commit b6e9462d68
5 changed files with 99 additions and 1 deletions

17
formulare/get_formulare.php Executable file
View File

@@ -0,0 +1,17 @@
<?php
header("Access-Control-Allow-Origin: *");
include("../../mysqlverbinden.php");
$data=[];
foreach(mysqli_execute_query($db_id,"SELECT `id`,`name`,`minitext`,`public`,`multiple` FROM formulare;",[]) as $row){
$data[]=[
"id"=>$row["id"],
"name"=>$row["name"],
"minitext"=>$row["minitext"],
"public"=>$row["public"],
"multiple"=>$row["multiple"],
];
}
echo json_encode($data,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);