Error performing query: " . mysql_error() . "
"); exit(); } $artist = mysql_fetch_array($result); if ("" == $artist['id']) { header('Location: /errors/404.html'); } $bandname = $artist['artist']; $description = $artist['description']; $location = $artist['location']; $email = $artist['email']; $website = $artist['website']; $photourl = $artist['photourl']; $mp3url = $artist['mp3url']; $checkMyspace = $artist['checkMyspace']; $song = $artist['song']; $playerurl = $artist['playerurl']; $player = ""; $weburl = ""; $photourl = "/_media/" . $photourl; if ("" !== $playerurl) { $playerurl = "/music/" . $playerurl; $player = true; } else { $player = false; } // if myspace link to mp3 if ("Yes" == $checkMyspace) { $mp3title = "Check Myspace site"; } // if yes downloadable and streaming mp3 if (("" == $checkMyspace) && ("" !== $mp3url)) { $mp3title = $song; $mp3url = "/music/" . $mp3url; } if ((isset($website)) && ("" == $website)) { $weburl = false; } else { $weburl = true; $website2 = substr($website,7); } $emailpart = explode("@",$email); $emailname = $emailpart[0]; $emaildomain = $emailpart[1]; // GET CLASS NAMES // $result2 = mysql_query("SELECT id, artist FROM bands"); if (!$result2) { echo("Error performing query: " . mysql_error() . "
"); exit(); } while ($row = mysql_fetch_array($result2)) { $rowID = $row[0]; $bandname2 = $row[1]; $classparts = explode(" ",$bandname2); for ($j=0; $j < count($classparts); $j++) { if ("&" == $classparts[$j]) { $classparts[$j] = "and"; } } $class[$rowID] = strtolower(implode("",$classparts)); } ?>