# MySQL Not printing a row correctly

**URL:** <https://forum.kirupa.com/t/mysql-not-printing-a-row-correctly/134812>\
**Category:** Uncategorized\
**Created:** [January 21, 2005, 6:40pm UTC](https://forum.kirupa.com/t/mysql-not-printing-a-row-correctly/134812 "2005-01-21T18:40:29Z")\
**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:** [January 21, 2005, 6:40pm UTC](https://forum.kirupa.com/t/mysql-not-printing-a-row-correctly/134812/1 "2005-01-21T18:40:29Z")

</div>

I’m trying to print a link from a mysql database. When it prints it it prints it in the form it should be, but the hyperlink for it seems to be messed up.

```php

print "<p><b>Web site:</b> <a href=\"{row['site']}\">{$row['site']}</a> </p>";

```

That is the code. When the hyperlink is clicked it trys accessing {$row[‘site’]} on localhost/.

Any ideas?
