Find the error in the code and then fix ALL of the code around it. INdent properly and you will see that there is something wrong.
It might also help if you have a good source code editor like Notepad++. It will highlight a the matching brace of the brace you have your cursor next to.