You forgot to close a parenthesis, so from the last open parenthesis, PHP considers all the code that follows as part of a specific block (condition, arguments of functions etc) that does not end. You ...
Note: PHP is a simple program that asks for much attention. You should not have any problem with it if you pay enough attention to the logical flow of the program.