#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    769
    Rep Power
    41

    Unexspected $end


    I did some research but could not find the answer. I reduced my code down to the minimum, and I'm getting the error "unexpected $end."

    here's my code:
    Code:
    <?php
    session_start();
    $id=$_GET["id"];
    echo "id=". $id;
    $pagetitle = "::client ads";
    session_register();
    if (!isset($HTTP_SESSION_VARS['main_admin']))
    {
    echo '<h1>You are not logged in</h1>';
    echo '<p>PLEASE VERIFY THAT YOU ARE AN AUTHORIZED USER</p>';
    echo '<a href="index.php">LOGIN</a><br /><br />';
    require ('footer.php');
    }else{
    echo "you are logged in";
    ?>
    I removed all the white space, but I'm still getting the error.
    Can anyone see why?

    thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    769
    Rep Power
    41

    I was missing a "}"


    needed a "}" at the end.
    stupid mistake.
    thanks

    Comments on this post

    • ryon420 agrees : For finding your own answer, and then coming back and posting it.

IMN logo majestic logo threadwatch logo seochat tools logo