This commit is contained in:
2019-07-04 13:35:00 +02:00
parent 786e92cd8a
commit 6bc1a522a1
2 changed files with 5 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
require_once(__DIR__ . '/Database.php');
$id = $_POST['id'];
$question = $_POST['question'];
$answer0 = $_POST['answer0'];
$answer1 = $_POST['answer1'];
@@ -10,7 +11,7 @@ $solution = $_POST['solution'];
$db = new Database();
$db->updateQuestion($question, $answer0, $answer1, $answer2, $solution);
$db->updateQuestion($id, $question, $answer0, $answer1, $answer2, $solution);
//header("Location: questions-show.php");