Jump to content
MakeWebGames

Main menu not working :/


Dragon Blade

Recommended Posts

Is your "END;" that's on line 159 on column 1? there appears to be a tab and those are no bueno.

WarningIt is very important to note that the line with the closing identifier must contain no other characters, except a semicolon (;). That means especially that the identifier may not be indented, and there may not be any spaces or tabs before or after the semicolon. It's also important to realize that the first character before the closing identifier must be a newline as defined by the local operating system. This is \n on UNIX systems, including Mac OS X. The closing delimiter must also be followed by a newline.

If this rule is broken and the closing identifier is not "clean", it will not be considered a closing identifier, and PHP will continue looking for one. If a proper closing identifier is not found before the end of the current file, a parse error will result at the last line.

Heredocs can not be used for initializing class properties. Since PHP 5.3, this limitation is valid only for heredocs containing variables.

So here you go, I was nice enough to fix like 3 or 4 tabbed identifiers

http://pastebin.com/LUGCpahA

Link to comment
Share on other sites

Thanks Newbie and Kyle! But Kyle I still get an error?

 

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/8888/public_html/new_staff/staff_menu.php on line 26

 

Line - 26

if ($ir['users'] == 1 && $ir['punish_two'] == 1 && $ir['announcement'] == 1 && $ir['staff_application'] == 1 && $ir['staff'] == 1)      
Link to comment
Share on other sites

Is your "END;" that's on line 159 on column 1? there appears to be a tab and those are no bueno.

So here you go, I was nice enough to fix like 3 or 4 tabbed identifiers

http://pastebin.com/LUGCpahA[/color]

if your still stuck after what kyle has said then read this it will help you understand better i hope it did help me i didn't have a clue what kyle was talking about until i read this and the comments

http://stackoverflow.com/questions/8400018/syntax-error-unexpected-t-encapsed-and-whitespace-expecting-t-string-or-t-vari

Link to comment
Share on other sites

i can see where his error is coming from

line 25 after END; he has a couple spaces followed by a } but i tried it with yours and no luck sorry

did you hire someone to create custom a layout for you ?if so were you getting this error before or after

 

</form>
END;    

   }
Edited by Newbie
Link to comment
Share on other sites

  • 2 weeks later...

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.   Paste as plain text instead

  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.

×
×
  • Create New...