pconnect("$db_name"); $url_path = explode("/",$REQUEST_URI); if ($oldalbum != 1) { $country = $url_path[2]; $artist = $url_path[3]; $album_id = $url_path[4]; $sql = "select name, country, author, hits from albums2 where id = '$album_id'"; $result = $db->query($sql); $album = $db->fetch_object($result); if(eregi("B",$url_path[4])) { $ASIN = $url_path[4]; $album_id = album_id($url_path[4]); } else { $ASIN = album_asin($url_path[4]); $album_id = $url_path[4]; } } $sql = "select id, name, country, site_url, tours_url from artists where id = '$artist'"; $result = $db->query($sql); $data = $db->fetch_object($result); $title = "$data->name"; $artist_name = $data->name; $country = $data->country; include("header.php"); $menu = artist_country_menu($country); $res = artist_track_search($artist); $album_tracks = album_tracks($album_id); print << $menu
EOF; echo(""); foreach($res as $r) { $ct++; if ($ct % 2 == 0) { $color = "#CCCCCC"; } else { $color = "#FFFFFF"; } echo("". "". "". ""); } print << EOF; print <<
#TrackAlbumArtistHits
$ct$r[track_name]".album_link($r[alid],$r[album],$r[mid],$r[country])."".artist_link($r[mid],$r[artist],$r[country])."$r[hits]
-->
EOF; include("footer.php"); ?>