What's wrong with this code?
<p>Here is the code: <a href="http://pastebin.com/RVSLLyQi" rel="nofollow">http://pastebin.com/RVSLLyQi</a></p>

<p>Starting from line 37, the html outputs to empty 'a' tags. I'm guessing something is wrong with my syntax on that line. Still a beginner here. Any help would be appreciated!</p>
