You either need a semi-colon before the 2nd "echo", or else replace that 2nd "echo" with a "." concatenation operator. In either case, you then also need another concatenation operator before the '</a>' at the end of the output.
PS: Welcome to the forums, and in the future please be sure to wrap your PHP code samples in the forum's [noparse]
...
[/noparse] bbcode tags. (I already added them to your post here.)