I have the following
[code=php] $row[‘web_address’]; [/code]
which has for example ‘www.webdeveloper.com’ stored there as a varchar
how can i echo this address on my page but allow it to be a clickable link??
[code=php] echo "<a href='http://$row['web_address']'>$row['web_address']</a>"; [/code]
That is what I though though I get a parse error when doing it that way I thought which is [code=php] echo "<a href='http://$row['web_address']'>$row['web_address']</a>"; [/code] what am i doing wrong? Thanks[/QUOTE]
[code=php] echo '<a href="http://' . $row['web_address'] . '">' . $row['web_address'] . '</a>'; [/code]
[code=php] $address = trim($row['web_address']); echo "<a href="http://$address">$address</a>"; [/code]
Help @skibum spread the word by sharing this article on Twitter...