You probably have a tiny error somewhere: a single letter wrong, or : instead of a ;. Check through it again.
Whenever you get an error message, always quote it exactly in the forum. It really helps us understand what's going on. The error message usually includes a hash sign #, which indicates where in the line of code the error has occurred. (It isn't always right, but it helps.)
Oh, and
Welcome to the forum!