Hamish Posted April 30, 2007 Share Posted April 30, 2007 Hi All, The code snippet below returns a URL from a database query displaying it in a table. echo("<td align='left'>" . $rec["URL"] . "</td>"); How can I insert the <a href= </a> tags around the "URL" returned to make it a clickable link. As always any help much appreciated. Regards Hamish Link to comment https://forums.phpfreaks.com/topic/49339-solved-change-returned-query-url-into-a-clickable-link/ Share on other sites More sharing options...
The Little Guy Posted April 30, 2007 Share Posted April 30, 2007 echo '<td align="left"><a href="'.$rec['URL'] .'"> ' . $rec['URL'] . '</a></td>'; Link to comment https://forums.phpfreaks.com/topic/49339-solved-change-returned-query-url-into-a-clickable-link/#findComment-241773 Share on other sites More sharing options...
Hamish Posted April 30, 2007 Author Share Posted April 30, 2007 Thanks very much works a treat! Regards Hamish Link to comment https://forums.phpfreaks.com/topic/49339-solved-change-returned-query-url-into-a-clickable-link/#findComment-241780 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.