Looks like just the echo is wrong. It should be:
echo "<a href=".$row['lnktxt'].">".$row['dsptxt']."</a>";
There are lots of ways to deal with the various quotes. Keep in mind just output text (like <a href) needs quotes around it (i.e. to make it a string).