messy Posted August 24, 2009 Share Posted August 24, 2009 Hi - I want my search for members to bring back the URL as a hyperlink - The below code brings the hyperlink it but it adds it to the end of my main URL - so I end up with both my URL and the members in a single string in the browser - Any suggestions? CODE - In my search results page <tr> <td class="lighterleft">Website</td> <td class="lighter"><a href="<?php echo $row_Recordset1['Website']; ?>"><?php echo $row_Recordset1['Website']; ?></a></td> </tr> Link to comment https://forums.phpfreaks.com/topic/171691-i-want-my-search-to-bring-up-url-as-a-hyperlink-thanks/ Share on other sites More sharing options...
the182guy Posted August 24, 2009 Share Posted August 24, 2009 You'll need http:// or http://www. at the start of the href attribute like: <td class="lighter"><a href="http://<?php echo $row_Recordset1['Website']; ?>"><?php echo $row_Recordset1['Website']; ?></a></td> Link to comment https://forums.phpfreaks.com/topic/171691-i-want-my-search-to-bring-up-url-as-a-hyperlink-thanks/#findComment-905349 Share on other sites More sharing options...
messy Posted August 24, 2009 Author Share Posted August 24, 2009 Thanks a mill - Great Link to comment https://forums.phpfreaks.com/topic/171691-i-want-my-search-to-bring-up-url-as-a-hyperlink-thanks/#findComment-905354 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.