dnk37482 Posted September 26, 2007 Share Posted September 26, 2007 Hi I have a value which is $keywords in my database The key words are separated by commas, like: fun, funny, exciting, weird I want to make each of those keywords link to "link.php" I can only get them all to be one link, how would I make them each into seperate links Thanks for any help I can get on this. Link to comment https://forums.phpfreaks.com/topic/70809-solved-seperate-links-from-comma-seperated-value-in-a-databse/ Share on other sites More sharing options...
BlueSkyIS Posted September 26, 2007 Share Posted September 26, 2007 $kws = explode(",",$keywords); foreach ($kws AS $a_kw) { echo "<A href='link.php'>".trim($a_kw)."</A><BR>"; } Link to comment https://forums.phpfreaks.com/topic/70809-solved-seperate-links-from-comma-seperated-value-in-a-databse/#findComment-356050 Share on other sites More sharing options...
dnk37482 Posted September 27, 2007 Author Share Posted September 27, 2007 thank you so much....very very helpful. I really think this forum is fantastic! And the users on it! Link to comment https://forums.phpfreaks.com/topic/70809-solved-seperate-links-from-comma-seperated-value-in-a-databse/#findComment-356210 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.