[PHP Mysql] Getting links from a database

I’m trying to get a list of links from a database and have them popup into a window. I’m not getting any errors with my php, but it isnt actually linking it. Here is my code:

echo "<a href id=\"portsub\" href=\"javascript:newWindow('portfolio/" . $row['link'] . "')\">{$row['title']}</a><br>";

Is there anything I have done wrong? I wasnt to sure on how to do the $row[‘link’] inside of the script.

Thanks in advance!