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