prepare($query); $sth->execute($fields); $data = array(); $firstsong = true; while ( $row = $sth->fetch() ) { $songid = $row['songid']; $song = new Song($songid); echo "
\n"; echo "
\n"; echo "
\n"; echo "

Song: {$song->getTitle(HTMLSAFE)}

\n"; echo "

Artist: {$song->getArtist(HTMLSAFE)}

\n"; echo "

Album: {$song->getAlbum(HTMLSAFE)}

\n"; echo "
\n"; echo "
\n"; echo "
\n"; } exit(); ?>