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

@@ -41,6 +41,12 @@ class Database
return $statement->execute();
}
public function updateQuestion($question, $answer0, $answer1, $answer2, $solution) {
$statement = $this->connection->prepare("UPDATE questions SET question=?, answer0 = ?, answer1 = ?, answer2 = ?, solution = ?");
$statement->bind_param("ssssi", $question, $answer0, $answer1, $answer2, $solution);
return $statement->execute();
}
/**
* Löscht den Taks mit der ID $id aus der Tabelle tasks
*