From e02816e81e5b6938b81fa8973b639fad9a29298b Mon Sep 17 00:00:00 2001 From: biglyderv Date: Sat, 30 Nov 2024 04:52:01 -0500 Subject: [PATCH] who reads these --- docs/index.php | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) 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) { ?>