# Echo text from table, then make it a link?

**URL:** <https://forum.kirupa.com/t/echo-text-from-table-then-make-it-a-link/272647>\
**Category:** Uncategorized\
**Created:** [October 7, 2008, 11:01am UTC](https://forum.kirupa.com/t/echo-text-from-table-then-make-it-a-link/272647 "2008-10-07T11:01:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ian\_dcuk](https://avatars.discourse-cdn.com/v4/letter/i/ea666f/32.png) [@ian\_dcuk](https://forum.kirupa.com/u/ian_dcuk)\
**Post date:** [October 7, 2008, 11:01am UTC](https://forum.kirupa.com/t/echo-text-from-table-then-make-it-a-link/272647/1 "2008-10-07T11:01:03Z")

</div>

How would I go about changing my following echo statement. So it will print the ‘Link’ as an \<a href\> link?

[COLOR=red] \<?php  
echo $row[‘CompanyName’];  
echo $row[‘ContactEmail’];  
echo $row[‘Link’];  
?\>[/COLOR]

I was trying something like this: echo [COLOR=red]"\<a href="$row[‘Link’]"\>$row[‘Link’]\</a\>[/COLOR]"; but not working.

Any help would be much appreciated.  
Ian :wt:
