This code was written for me a while ago. It it creates a link to a music label that is providing music for my netcast.
<tr>
<td class="track" id="current_track"><?php print str_replace("[www.URL.com]", "[<a href='http://www.URL.com'>LINK NAME</a>]", $song_title); ?></td>
<td class="time" id="now_playing">Now</td>
</tr>
<?php
while(list($key,$val) = each($con_song_print)) {
echo "<tr>\n";
$key = preg_replace( '/(http|ftp)+(s)?🙁\/\/)((\w|.)+)(\/)?(\S+)?/i', '<a href="\0">\4</a>', $key );
echo "<td class=track>";
echo str_replace("[www.URL.com]", "[<a href='http://www.URL.com'>LINK NAME</a>]", $con_song_print[$key]) . "</td>\n";
echo "<td class=time>$playtime[$key]</td>\n";
echo "</tr>\n";
}
?>
when a track from this label is played the URL will appear as follows
artist - track [URL]
i would like to modify this code so that if songs from other labels play, their label's URL will display in the same way.
can anyone demonstrate how i can include those URL's in the code?