This commit is contained in:
structix committed 2019-07-11 12:50:54 +02:00
1 parent bc65070ce3
commit 7890bf2bcb
2 files changed
+3 -23

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
<?php
require_once(__DIR__ . '/Database.php');
header('Content-Type: application/json');
$db = new Database();
$n = 0;
if (isset($_GET['n'])) {
$n = $_GET['n'];
}
$questions = $db->getQuestions($n);
$questionsobj = json_encode($questions);
echo($questionsobj);
?>