From b49c2533c5a82332113d125a40712ab50adade81 Mon Sep 17 00:00:00 2001
From: Cflip <36554078+cflip@users.noreply.github.com>
Date: Fri, 22 Jan 2021 21:40:51 -0700
Subject: Fix broken pages
---
create_topic.php | 102 +++++++++++++++----------------------------------------
1 file changed, 28 insertions(+), 74 deletions(-)
(limited to 'create_topic.php')
diff --git a/create_topic.php b/create_topic.php
index 9eab942..2953646 100644
--- a/create_topic.php
+++ b/create_topic.php
@@ -1,90 +1,44 @@
Create a new topic
';
if (!isset($_SESSION['signed_in'])) {
- echo 'You must be signed in to create a topic.';
-} else {
- if ($_SERVER['REQUEST_METHOD'] != 'POST') {
- $sql = "SELECT cat_id, cat_name, cat_description FROM categories";
- $result = mysqli_query($dbc, $sql);
-
- if (!$result) {
- echo 'Error while selecting from database. Please try again later.';
- } else {
- if (mysqli_num_rows($result) == 0) {
- echo 'There are currently no categories to post to.';
- } else {
- echo '
-
+
+
\ No newline at end of file
--
cgit v1.2.3