-
$Page1 = array_slice($Collage, 0, $CollageCovers);
foreach ($Page1 as $Group) {
echo $Group;
}
?>
Artists |
// TODO: Cache this $DB->query(" SELECT ca.ArtistID, ag.Name, aw.Image, ca.UserID FROM collages_artists AS ca JOIN artists_group AS ag ON ag.ArtistID=ca.ArtistID LEFT JOIN wiki_artists AS aw ON aw.RevisionID = ag.RevisionID WHERE ca.CollageID='$CollageID' ORDER BY ca.Sort"); $Artists = $DB->to_array('ArtistID', MYSQLI_ASSOC); // Loop through the result set, building up $Collage and $TorrentTable // Then we print them. $Collage = array(); $ArtistTable = ''; $NumGroups = count($Artists); $NumGroupsByUser = 0; $UserAdditions = array(); foreach ($Artists as $Artist) { $UserID = $Artist['UserID']; if ($UserID == $LoggedUser['ID']) { $NumGroupsByUser++; } if (!isset($UserAdditions[$UserID])) { $UserAdditions[$UserID] = 0; } $UserAdditions[$UserID]++; ob_start(); ?>
Artists |
Report