# \[PHP Mysql\] Getting links from a database

**URL:** <https://forum.kirupa.com/t/php-mysql-getting-links-from-a-database/79387>\
**Category:** programming\
**Created:** [February 13, 2005, 7:33pm UTC](https://forum.kirupa.com/t/php-mysql-getting-links-from-a-database/79387 "2005-02-13T19:33:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jw06](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jw06](https://forum.kirupa.com/u/jw06)\
**Post date:** [February 13, 2005, 7:33pm UTC](https://forum.kirupa.com/t/php-mysql-getting-links-from-a-database/79387/1 "2005-02-13T19:33:01Z")

</div>

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:

```php

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!
