$REQUEST_URI"; if (strlen($artistid)==0) { $myPath=explode("/",getenv("REQUEST_URI")); $artistid=$myPath[2]; } else { Header("Location: http://www.lyricfind.com/artists/$artistid/"); exit; } require "rw-mp3.php3"; if ($site=="") { include "common.php3"; $site="LyricFind"; $siteid=0; } elseif (substr($site,0,8)=="RapLyrix") { include "raplyrix/common.php3"; $site="RapLyrix"; $siteid=1; } else { include "ecommon.php3"; $site="eMP3Finder"; $siteid=2; } $query="select artistid, artist from artists where artists.artistid=$artistid"; $result=mysql_query($query); if ($result) { if ($obj=mysql_fetch_object($result)){ #$queryr="select reviews.id, title from reviews where substring(refid,1,1)='R' and substring(refid,2)=$artistid"; $queryr="select reviews.id, title from reviews, lyrics where ((substring(refid,1,1)='L' and substring(refid,2)=albumid) or (substring(refid,1,1)='R' and substring(refid,2)=$artistid)) and lyrics.artistid=$artistid group by reviews.id"; $resultr=mysql_query($queryr); print mysql_error(); if (mysql_num_rows($resultr)) { $righthead[0]="Reviews"; $isreview=1; } else { $isreview=0; } while ($objr=mysql_fetch_object($resultr)) { $rightbody[0].="
  • id/\">$objr->title"; } $query= "select albums.albumid as albumid, album from albums, lyrics where lyrics.albumid=albums.albumid and lyrics.artistid=$artistid group by albums.albumid order by album"; $result2=mysql_query($query); if ($result2) { $body2=$body2."

    $obj->artist

    "; if ($siteid==0 && $isreview) $body2.= "
    ".sidebox($righthead,$rightbody,160,"001A82","")."
    "; while ($obj2=mysql_fetch_object($result2)) { if ($obj2->albumid==1) $body2=$body2."Album Not Available