Just a thought, but does the php open bracket thing need to be closed at the bottom?
hmmm.....