Jump to content

php forum error


piano0011

Recommended Posts

Hey guys!

I am trying to make a forum and got the following errors:

image.thumb.png.e5eb40f7dc39d60a1df1df3e2b86f7ca.png

According to my url, the error seems to be in my post_reply_parse.php.... Upon further looking at the code, I think the problem lies in this section:

```

<?php
include_once 'header.php';
if (!isset($_SESSION['u_uid'])) {
    header ("Location: index.php?post_reply_parse=notlogin");
    exit();
    } else {
    if (!isset($_POST['submit'])) {
        header("Location: post_reply.php?post_reply_parse=error");
        exit();

    } else {
        include_once 'includes/dbh.php';
        $date = date("Y-m-d H:i:s");
        $creator = $_SESSION['u_uid'];
        $reply_content = $_POST['reply_content'];
        $cid = $_POST['cid'];
        $tid = $_POST['tid'];
        $limit = 1;

 

```

 

For some reason, if I do this, then it works:

 

<?php
include_once 'header.php';
if (!isset($_SESSION['u_uid'])) {
    header ("Location: index.php?post_reply_parse=notlogin");
    exit();
    } else {
  
        include_once 'includes/dbh.php';
        $date = date("Y-m-d H:i:s");
        $creator = $_SESSION['u_uid'];
        $reply_content = $_POST['reply_content'];
        $cid = $_POST['cid'];
        $tid = $_POST['tid'];
        $limit = 1;

 

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.