Update
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
require_once(__DIR__ . '/Database.php');
|
||||
|
||||
echo <<<END
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<h1>Fragen anzeigen</h1>
|
||||
<table>
|
||||
<tr>
|
||||
@@ -18,6 +19,8 @@ END;
|
||||
$db = new Database();
|
||||
|
||||
$questions = $db->getQuestions();
|
||||
//
|
||||
//This is ugly but does the job (I'm used to the laravel collections)
|
||||
$questionsobj = json_decode(json_encode($questions), false);
|
||||
|
||||
foreach($questionsobj as $question) {
|
||||
@@ -30,6 +33,8 @@ foreach($questionsobj as $question) {
|
||||
echo("</tr>");
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo <<<END
|
||||
</table>
|
||||
<br><br>
|
||||
|
Reference in New Issue
Block a user