$lyricID = 3;
$getlyric_sql = mysql_query("SELECT lyrics.lyricID, lyrics.lyrictitle, lyrics.lyric, artists.artistname, albums.albumname FROM lyrics INNER JOIN artists, albums ON lyrics.artistID = artist.artistID AND lyrics.albumID = albums.albumID WHERE lyrics.lyricID = '".mysql_real_escape_string($lyricID)."'");
while($row = mysql_fetch_array($getlyric_sql, MYSQL_ASSOC))
{
echo $row['lyrictitle'];
}
|