$twoweeksago) $newtrack = 1; else $newtrack = 0; $testresult = mysql_query("SELECT * FROM artists WHERE id = $artistID"); $radiouse = mysql_result($testresult, 0, radiouse); /* Find out what formats this release is available in */ $mp3samplepath = mysql_result($result, 0, mp3SamplePath); $mmfpath = mysql_result($result, 0, mmfPath); $midipath = mysql_result($result, 0, midiPath); $amrpath = mysql_result($result, 0, amrPath); $wavpath = mysql_result($result, 0, wavPath); $wapmp3path = mysql_result($result, 0, wapMP3Path); $mp3path = mysql_result($result, 0, mp3path); if(strlen($mp3path) > 0) $mp3Available = 1; else $mp3Available = 0; $realtoneArray = array(); if(strlen($wapmp3path) > 0) array_push($realtoneArray, "MP3"); if(strlen($amrpath) > 0) array_push($realtoneArray, "AMR"); if(strlen($wavpath) > 0) array_push($realtoneArray, "WAV"); $polytoneArray = array(); if(strlen($midipath) > 0) array_push($polytoneArray, "MIDI"); if(strlen($mmfpath) > 0) array_push($polytoneArray, "MMF"); /* Get User Ratings */ $ratingsresult = mysql_query("SELECT * FROM reviewratings WHERE trackid = $id"); $numratings = mysql_numrows($ratingsresult); if($numratings != 0) { $total = 0; while($row = mysql_fetch_array($ratingsresult)) { $ratingstotal = $ratingstotal + $row[rating]; } $averagerating = round(2 * ($ratingstotal / $numratings)) / 2; } /* Get User Comments (3 at random) */ $commentsresult = mysql_query("SELECT * FROM reviewcomments WHERE trackid = $id ORDER BY RAND() LIMIT 3"); $numcomments = mysql_numrows($commentsresult); } $pagetitle = "$artistname - $trackname"; $meta_keywords = "$trackname by $artistname download buy music mp3 realtone ringtones"; $meta_description = $metadescription; $titleText = "$trackname by $artistname"; $notallowed = array("[", "]", "{", "}", ",", "*", "&", "^", "%", "/", "|", ";", ":", "?", "'", "(", ")"); $artistnamelink = str_replace($notallowed,"",$artistname); $artistnamelink = str_replace(" ","-",$artistnamelink); $artistnamelink = strtolower($artistnamelink); $tracknamelink = str_replace($notallowed,"",$trackname); $tracknamelink = str_replace(" ","-",$tracknamelink); $tracknamelink = strtolower($tracknamelink); include("header.php"); if($error == 1) echo "Sorry, there was an error when trying to load the release you requested. Please go back and try again."; else { if (isset($fremail)) { $fremail = strtolower($fremail); $fremail = formatField($fremail); if(strlen($fremail) < 1) $error1 = "ERROR: You must enter an email address."; elseif(!isValidEmail($fremail)) $error1 = "ERROR: This is not a valid email address."; else { $subject = "A friend has recommended you a track on Stayaround.com"; $content = "Dear $fremail,

A friend has recommended the following track on stayaround.com for you:

Title: $trackname
Artist: $artistname

Click here to listen to the track or visit stayaround.com for further information.

Regards,
The Stayaround Team."; $result = siteMail($fremail, $subject, $content); $error1 = "Email sent to $fremail"; $fremail = ""; } } ?>
Download

    Add to cart

"; if(count($realtoneArray) > 0) { $tempstring = ""; foreach($realtoneArray as $thisformat) { $tempstring .= $thisformat.", "; } $tempstring = substr($tempstring, 0, -2); if (strlen($wapmp3path) > 0) echo ""; else echo "        "; echo "    ($tempstring)  How to download

"; } if(count($polytoneArray) > 0) { $tempstring = ""; foreach($polytoneArray as $thisformat) { $tempstring .= $thisformat.", "; } $tempstring = substr($tempstring, 0, -2); echo "    ($tempstring)  How to download

"; } ?>

$artistname"; ?> - "; ?>

0) echo "Producer: ".$producer."
"; if (strlen($remixer) > 0) echo "Remixer: ".$remixer."
"; ?>


"; echo "
"; trackImage($id, 120, 0, 0, 1); echo "
"; } else { $testresult = mysql_query("SELECT * FROM artists WHERE id = $artistID"); if(mysql_result($testresult, 0, artistsimg) != "0") { echo "
"; echo "
"; artistImage($artistID, 120, 0, 0, 1); echo "
"; } } ?>
Track Genre:
Track Length:
More from this artist
Listener ReviewsRate this track


0) { echo "Average Rating:  "; /* Star 1 */ if($averagerating >= 1) echo "\"Average"; elseif($averagerating > 0) echo "\"Average"; else echo "\"Average"; /* Star 2 */ if($averagerating >= 2) echo "\"Average"; elseif($averagerating > 1) echo "\"Average"; else echo "\"Average"; /* Star 3 */ if($averagerating >= 3) echo "\"Average"; elseif($averagerating > 2) echo "\"Average"; else echo "\"Average"; /* Star 4 */ if($averagerating >= 4) echo "\"Average"; elseif($averagerating > 3) echo "\"Average"; else echo "\"Average"; /* Star 5 */ if($averagerating >= 5) echo "\"Average"; elseif($averagerating > 4) echo "\"Average"; else echo "\"Average"; echo "
"; while ($row = mysql_fetch_array($commentsresult)) { echo "
\"$row[comment]\"
"; } } else echo "No reviews available for this track."; ?>
Download

    Add to cart

"; if(count($realtoneArray) > 0) { $tempstring = ""; foreach($realtoneArray as $thisformat) { $tempstring .= $thisformat.", "; } $tempstring = substr($tempstring, 0, -2); if (strlen($wapmp3path) > 0) echo ""; else echo "        "; echo "    ($tempstring)  How to download

"; } if(count($polytoneArray) > 0) { $tempstring = ""; foreach($polytoneArray as $thisformat) { $tempstring .= $thisformat.", "; } $tempstring = substr($tempstring, 0, -2); echo "    ($tempstring)  How to download

"; } ?>

"; if (strlen($error1) > 0) echo "
".$error1."

"; echo "



"; } include("footer.php"); ?>