query(" SELECT Page, COUNT(1) FROM comments WHERE AuthorID = $UserID GROUP BY Page"); $Comments = $DB->to_array('Page'); $NumComments = $Comments['torrents'][1]; $NumArtistComments = $Comments['artist'][1]; $NumCollageComments = $Comments['collages'][1]; $NumRequestComments = $Comments['requests'][1]; $DB->query(" SELECT COUNT(ID) FROM collages WHERE Deleted = '0' AND UserID = '$UserID'"); list($NumCollages) = $DB->next_record(); $DB->query(" SELECT COUNT(DISTINCT CollageID) FROM collages_torrents AS ct JOIN collages ON CollageID = ID WHERE Deleted = '0' AND ct.UserID = '$UserID'"); list($NumCollageContribs) = $DB->next_record(); $DB->query(" SELECT COUNT(DISTINCT GroupID) FROM torrents WHERE UserID = '$UserID'"); list($UniqueGroups) = $DB->next_record(); $DB->query(" SELECT COUNT(ID) FROM torrents WHERE ((LogScore = 100 AND Format = 'FLAC') OR (Media = 'Vinyl' AND Format = 'FLAC') OR (Media = 'WEB' AND Format = 'FLAC') OR (Media = 'DVD' AND Format = 'FLAC') OR (Media = 'Soundboard' AND Format = 'FLAC') OR (Media = 'Cassette' AND Format = 'FLAC') OR (Media = 'SACD' AND Format = 'FLAC') OR (Media = 'Blu-ray' AND Format = 'FLAC') OR (Media = 'DAT' AND Format = 'FLAC')) AND UserID = '$UserID'"); list($PerfectFLACs) = $DB->next_record(); ?>
Community