This commit is contained in:
2019-07-04 13:31:36 +02:00
parent 2cfacd079e
commit 270d76dacb
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
require_once(__DIR__ . '/Database.php');
$question = $_POST['question'];
$answer0 = $_POST['answer0'];
$answer1 = $_POST['answer1'];
$answer2 = $_POST['answer2'];
$solution = $_POST['solution'];
$db = new Database();
db->updateQuestion($question, $answer0, $answer1, $answer2, $solution);
//header("Location: questions-show.php");
?>