Jump to content

php forum error


piano0011
 Share

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

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • 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.