when you get a parse error showing that the error is on the last line of your code, i have found that its usually a missing close brace "}"
when you added tekky's code did you make sure that you closed it properly?
also
in the code you provided there is no form to display, is it stored on a seperate page?