PDA

View Full Version : Parse error: parse error, unexpected T_ELSEIF in /home/ftpuser/rleague/admin/index.p


trev72
02-23-2005, 07:53 AM
Ok guys im getting this error where have I gone wrong


Parse error: parse error, unexpected T_ELSEIF in /home/ftpuser/rleague/admin/index.php on line 90

jr_admin_make_left_pane();

$template->pparse("body");

include('./page_footer_admin.'.$phpEx);
}
elseif( isset($_GET['pane']) && $_GET['pane'] == 'right'
{

include('./page_header_admin.'.$phpEx);

$template->set_filenames(array(
"body" => "admin/index_body.tpl")
);

bfsog
02-23-2005, 08:14 AM
Hi. you do not have a first if statement in your code. Therefore how can you have a elseif.

Scrowler
02-23-2005, 08:16 AM
your code makes no logical sense. why have you got an elseif statement when there is no if statement to open it?

it's the elseif statement that is causing that error. since i don't know what your script it meant to be doing, i can't help you with the logic.

i can say, that you haven't opened the if, you haven't completed the elseif structure (missing some brackets) and you haven't closed it either.

trev72
02-23-2005, 08:26 AM
It was a mod for a phpbb forum called junior admin. It said it was verified but then when I delete the else if I get other errors. I've redone the instruction heaps of times. Maybe I can send you guys the instructions and the original files and you can have a look at it for me please