Update
This commit is contained in:
1 parent
2cfacd079e
commit
270d76dacb
2 files changed
+24
No files matched your search
@@ -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
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user