-
$Page1 = array_slice($Collage, 0, $CollageCovers);
foreach ($Page1 as $Group) {
echo $Group;
}?>
Artists |
$DB->query(" SELECT ca.ArtistID, ag.Name, aw.Image, um.ID AS UserID, um.Username 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 LEFT JOIN users_main AS um ON um.ID=ca.UserID 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(); $TorrentTable = ''; $NumArtists = 0; $NumArtistsByUser = 0; $Users = array(); foreach ($Artists as $Artist) { $UserID = $Artist['UserID']; $Username = $Artist['Username']; $NumArtists++; if ($UserID == $LoggedUser['ID']) { $NumArtistsByUser++; } if ($Username) { if (!isset($Users[$UserID])) { $Users[$UserID] = array('name' => $Username, 'count' => 1); } else { $Users[$UserID]['count']++; } } ob_start(); ?>
Artists |
Report