It would help to see all the code (in code tags) but you should not have a semicolon at the end of the first line.
Pete