Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    unexpected T_ELSEIF

    Hello,
    I keep getting this error: (Parse error: syntax error, unexpected T_ELSEIF in).
    This is the code causing it:

    }
    ksort($memtypesarr, SORT_NUMERIC);
    $BIDFILE = $SETTINGS['siteurl'] . "bid_classic.php";
    if(!isset($_POST['id']) && !isset($_GET['id']) && isset($_SESSION["CURRENT_ITEM"]))

    {

    $id = $_SESSION["CURRENT_ITEM"];

    }elseif(isset($_REQUEST['id']) && is_numeric($_REQUEST['id']))

    What do I need to do to correct?
    I would appreciate any help!

    Thanks

  • #2
    Regular Coder seco's Avatar
    Join Date
    Nov 2008
    Location
    Oregon
    Posts
    687
    Thanks
    6
    Thanked 79 Times in 77 Posts
    PHP Code:
    } elseif (isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) 

    Last edited by seco; 01-31-2010 at 02:36 AM.

  • #3
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, I tried the code you sent but got the same error.
    Have any idea what else I might try?

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    He was pointing out the portion of the code which was wrong. Please read again.

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Please post the rest of your code also this needs to be moved to the php forum.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •