Jump to content

[SOLVED] Syntax errors


al3x8730

Recommended Posts

[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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.