...

View Full Version : unexpected T_ELSEIF



joebob1958
01-30-2010, 11:13 PM
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

seco
01-31-2010, 12:47 AM
} elseif (isset($_REQUEST['id']) && is_numeric($_REQUEST['id']))
}

joebob1958
01-31-2010, 02:29 AM
Thanks, I tried the code you sent but got the same error.
Have any idea what else I might try?

Apostropartheid
01-31-2010, 03:36 AM
He was pointing out the portion of the code which was wrong. Please read again.

_Aerospace_Eng_
02-01-2010, 12:44 AM
Please post the rest of your code also this needs to be moved to the php forum.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum