I have a mySQL database that has a web address field that is a type: text. When it shows up on my web page I would like it to be clickable as a hyperlink.
I have code around the field to "show if not empty" and can't figure out how to wrap it as a hyperlink.
Here's my code:
<?php if($row_rsEvents['weblink'] != "") { ?><span class="webAddress"><?php echo $row_rsEvents['weblink']; ?></a></span><br><?php } ?>
Thanks for your help.
http://...or<a href="http://.."...?