Update
This commit is contained in:
@@ -47,15 +47,9 @@ class Database
|
||||
return $statement->execute();
|
||||
}
|
||||
|
||||
/**
|
||||
* Löscht den Taks mit der ID $id aus der Tabelle tasks
|
||||
*
|
||||
* @param int $id
|
||||
* @return bool, falls Löschen erfolgreich
|
||||
*/
|
||||
public function deleteTask($id)
|
||||
public function deleteQuestion($id)
|
||||
{
|
||||
$statement = $this->connection->prepare("DELETE FROM tasks WHERE id = ?");
|
||||
$statement = $this->connection->prepare("DELETE FROM questions WHERE id = ?");
|
||||
$statement->bind_param("i", $id);
|
||||
return $statement->execute();
|
||||
}
|
||||
|
Reference in New Issue
Block a user