Upload zu git.itlabs.at

This commit is contained in:
DanielKirchmeier
2023-01-08 22:45:34 +01:00
commit 9d107d3423
28 changed files with 439 additions and 0 deletions

20
api/pruefung.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
require './db_config.php';
$sql = "SELECT * FROM `exam`";
$result = $mysqli->query($sql);
if ($result != null) {
while ($row = $result->fetch_assoc()) {
$json[] = $row;
}
$data['exam'] = $json;
$result = mysqli_query($mysqli, $sql);
echo json_encode($data);
} else
echo "<br><br>keine Daten empfangen!<br><br>";
?>