You're missing a "}" at the end of the code. There should another one on the line below the last one.
Also as a tip, could you use the php bbcode when posting these? ([+php][+/php], remove the plus signs) It makes the post shorter so you don't have to scroll down so far when you post long codes.
|