diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/db_inc.php | 2 | ||||
-rw-r--r-- | includes/register_inc.php | 0 | ||||
-rw-r--r-- | includes/reply_inc.php | 6 |
3 files changed, 4 insertions, 4 deletions
diff --git a/includes/db_inc.php b/includes/db_inc.php index b76f06d..2d157af 100644 --- a/includes/db_inc.php +++ b/includes/db_inc.php @@ -3,7 +3,7 @@ $db_server = 'localhost'; $db_user = 'root'; $db_pass = ''; -$db_database = 'forum'; +$db_database = 'forum2'; $dbc = mysqli_connect($db_server, $db_user, $db_pass, $db_database); diff --git a/includes/register_inc.php b/includes/register_inc.php deleted file mode 100644 index e69de29..0000000 --- a/includes/register_inc.php +++ /dev/null diff --git a/includes/reply_inc.php b/includes/reply_inc.php index 480c651..d20c4ed 100644 --- a/includes/reply_inc.php +++ b/includes/reply_inc.php @@ -10,10 +10,10 @@ if ($_SERVER['REQUEST_METHOD'] != 'POST') { } if (!isset($_SESSION['signed_in'])) { - die('You must be signed in to reply to a topic.'); + die('You must be signed in to reply to a thread.'); } -$sql = "INSERT INTO posts(post_content, post_date, post_topic, post_author) VALUES(?, NOW(), ?, ?)"; +$sql = "INSERT INTO posts(post_content, post_date, post_thread, post_author) VALUES(?, NOW(), ?, ?)"; $stmt = mysqli_stmt_init($dbc); if (!mysqli_stmt_prepare($stmt, $sql)) { @@ -24,4 +24,4 @@ mysqli_stmt_bind_param($stmt, "sii", $_POST['reply_content'], $_GET['reply_to'], mysqli_stmt_execute($stmt); mysqli_stmt_close($stmt); -header("Location: ../topic.php?id=" . $_GET['reply_to']);
\ No newline at end of file +header("Location: ../thread.php?id=" . $_GET['reply_to']);
\ No newline at end of file |