I'm trying to wite a code that can take a web address from a variable and out it into a hyperlink.
This is what I have so far:
This doesn't work (stating the obvious or I woudn't be asking!), so any ideas, tips etc.?
This is what I have so far:
Code:
// display the results returned
while ($row= mysql_fetch_array($result)) {
$title = $row["song_name"];
$artist = $row["artist"];
$genre = $row["genre"];
$SongID = $row["SongID"];
$Buy = $row["purchase_link"];
echo "$count.) $title" ;
echo " - " ;
echo "$artist" ;
print( '<a href="$Buy">Buy this track</a>' );
$count++ ;
}
Comment