When posting PHP code, please use the board's [noparse]
..
[/noparse] bbcode tags as they make your code much easier to read and analyze.
nineteen77;10992881 wrote:it says theres a problem with line 118
No, it does not. The error message is telling you that it found something unexpected on line #118 (the end of the file, that is). The error, then, must be before that line (which is why PHP wasn't expecting the file to suddenly end).
In addition, did you happen to see the stickied thread entitled Parse Error: syntax error? Your problem is caused by what I'm going to guess is the most common source - unmatched { or } braces. In your case, you've got 13 {'s and only 9 }'s.
Speaking of {}'s, why on earth do you have so many pointless groups of code blocks?