welcome here!
if i understand it correctly, then you want to turn a comma-seperated string into links?
something like
PHP Code:
$arr_favorites = explode (',', $rows['favorites']);
foreach($arr_favorites as $favorite){
echo '<a href="'. $favorite .'" title="link to favorite">blabla</a>';
}
well, you don't say what should be the urls and message, but is suppose you get the idea...
from a dba point of view, using composit values like your comma-separated sting for the favorites, is of course a verry bad practice.
i personally would just create a nuw record for each favorite...