Add uebung10
This commit is contained in:
15
uebung10/questions-show.php
Normal file
15
uebung10/questions-show.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
require_once(__DIR__ . '/Database.php');
|
||||
|
||||
$db = new Database();
|
||||
|
||||
$n = 0;
|
||||
if (isset($_GET['n'])) {
|
||||
$n = $_GET['n'];
|
||||
}
|
||||
$questions = $db->getQuestions($n);
|
||||
|
||||
$questionsobj = json_encode($questions);
|
||||
echo($questionobj);
|
||||
?>
|
Reference in New Issue
Block a user