I want to show a result obtained from a database within php, as a link, but the following line doesn't work.
NOTE: the result provided by {$row['LISTEN']} is an address, eg, "www.test.com/hello.html"
Code: Select all
echo " <td><a href="{$row['LISTEN']}" target="_blank">LINK</a></td>\n";Code: Select all
$link = {$row['LISTEN']}
echo " <td><a href="{$link}"LINK</a></td>\n";