$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? Quote 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. Quote 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? Quote 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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.