$php_mysql$ Posted September 30, 2011 Share Posted September 30, 2011 ok i display description from database with no isue but the thing is if there are links in description even the links like http://somesite.com shows as normal text on browser. how can i make them clickable? Link to comment https://forums.phpfreaks.com/topic/248185-links-not-clickable-after-fetching-from-db/ Share on other sites More sharing options...
premiso Posted September 30, 2011 Share Posted September 30, 2011 Turn them into hyperlinks using the <a href="http://somesite.com">http://somesite.com</a>. If you need a method to parse them, search the manual comments here preg_replace. Link to comment https://forums.phpfreaks.com/topic/248185-links-not-clickable-after-fetching-from-db/#findComment-1274422 Share on other sites More sharing options...
$php_mysql$ Posted September 30, 2011 Author Share Posted September 30, 2011 eith something like bbcode? Link to comment https://forums.phpfreaks.com/topic/248185-links-not-clickable-after-fetching-from-db/#findComment-1274424 Share on other sites More sharing options...
premiso Posted September 30, 2011 Share Posted September 30, 2011 eith something like bbcode? You could, but there should be examples of just finding urls in text. http://www.phpfreaks.com/forums/index.php?topic=336117.msg1583321#msg1583321 I would also check out that topic, it has code for what you want to do. Link to comment https://forums.phpfreaks.com/topic/248185-links-not-clickable-after-fetching-from-db/#findComment-1274425 Share on other sites More sharing options...
$php_mysql$ Posted September 30, 2011 Author Share Posted September 30, 2011 thanks Link to comment https://forums.phpfreaks.com/topic/248185-links-not-clickable-after-fetching-from-db/#findComment-1274449 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.