PHP Parse Error. Can't find the problem

Hello all,

This is my first post here, so hello!

I am getting the following PHP Parse error:

Parse error: parse error, unexpected $ in /homepages/6/d32478275/htdocs/paulmichaelsmith/admin/sbadmin/editlink.php on line164

Line 164 is the last line of code and is just the

</html>

tag.

I wont post the full code with the board so here is a link instead.

I have searched around the net and apparently the problem occurs when parenthesis are incorrect or quotes, etc but I must be stupid or something because it all looks fine to me. Can somebody have a look and see if they can spot a bug/error or does anybody know of a reason why this weird type of parse error occurs ?

Thanks in Advance.