prepare("UPDATE chor set nachricht =:nachricht WHERE id=:id;"); $stmt->bindValue(":id", $id); $stmt->bindValue(":nachricht", $nachricht); $stmt->execute(); } catch ( Exception $e ) { $_SESSION["error"] = $e->getMessage(); error_log($e->getMessage()); } if ( empty($_SESSION) || is_null($_SESSON["error"]) ) { $_SESSION["success"] = "Erfolgreich aktualisiert!"; } header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); header("Location: /");