al3x8730 Posted September 10, 2008 Share Posted September 10, 2008 I'm getting this message: Parse error: syntax error, unexpected ';' in /home/a7068511/public_html/forum/groupcp.php on line 1110 I posted the file here, I can't seem to find the error... http://pastebin.com/m953db62 Link to comment https://forums.phpfreaks.com/topic/123696-solved-syntax-errors/ Share on other sites More sharing options...
Caesar Posted September 11, 2008 Share Posted September 11, 2008 Remove this last comma in line 1107: <?php 'YIM' => $yim, ?> Give that a shot. Link to comment https://forums.phpfreaks.com/topic/123696-solved-syntax-errors/#findComment-638739 Share on other sites More sharing options...
al3x8730 Posted September 11, 2008 Author Share Posted September 11, 2008 [quote author=Caesar link=topic=216060.msg987697#msg987697 date=1221091528] Remove this last comma in line 1107: [code]<?php 'YIM' => $yim, ?> Give that a shot. Nope, I used a PHP Syntax checker and it says that it's on the line that has ); But that doesn't make any sense..[/code] Link to comment https://forums.phpfreaks.com/topic/123696-solved-syntax-errors/#findComment-638744 Share on other sites More sharing options...
Caesar Posted September 11, 2008 Share Posted September 11, 2008 When an element is missing from an array you define, it will throw the error unto the next line...or where the semicolon terminates it. If you rely on the line number the PHP error tells you, you'll be stuck staring at your code for hours. Always look at the preceding code. Link to comment https://forums.phpfreaks.com/topic/123696-solved-syntax-errors/#findComment-638747 Share on other sites More sharing options...
al3x8730 Posted September 11, 2008 Author Share Posted September 11, 2008 When an element is missing from an array you define, it will throw the error unto the next line...or where the semicolon terminates it. If you rely on the line number the PHP error tells you, you'll be stuck staring at your code for hours. Always look at the preceding code. I have been doing that e.e Do you see anything wrong? Link to comment https://forums.phpfreaks.com/topic/123696-solved-syntax-errors/#findComment-638750 Share on other sites More sharing options...
Caesar Posted September 11, 2008 Share Posted September 11, 2008 You're also missing a closing parantheses in 1110: )); ...Is what it needs to be. Link to comment https://forums.phpfreaks.com/topic/123696-solved-syntax-errors/#findComment-638751 Share on other sites More sharing options...
al3x8730 Posted September 11, 2008 Author Share Posted September 11, 2008 You're also missing a closing parantheses in 1110: )); ...Is what it needs to be. Thanks! So much... Link to comment https://forums.phpfreaks.com/topic/123696-solved-syntax-errors/#findComment-638760 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.