diff --git a/docs/index.php b/docs/index.php index 1544987..b65d8ac 100644 --- a/docs/index.php +++ b/docs/index.php @@ -18,24 +18,12 @@ page_header(); $form_message = post_handler(); - - if ($username) { - form("Broadcast your thoughts...", $form_message, array( - array('key' => 'Your message', 'type' => 'textarea', 'name' => 'post', 'default' => '') - )); - } - - $stmt = $db->prepare("SELECT * FROM comment ORDER BY date DESC"); - $stmt->execute([]); - - $posts = $stmt->fetchAll(PDO::FETCH_DEFAULT); - ?> - 'Your message', 'type' => 'textarea', 'name' => 'post', 'default' => '') + )); + } + + $stmt = $db->prepare("SELECT * FROM comment ORDER BY date DESC"); + $stmt->execute([]); + + $posts = $stmt->fetchAll(PDO::FETCH_DEFAULT); foreach ($posts as $post) { ?>