query(" SELECT SQL_CALC_FOUND_ROWS cc.UserID, c.ID as CollageID, c.Name, cc.ID as PostID, cc.Body, cc.Time FROM collages as c JOIN collages_comments as cc ON cc.CollageID = c.ID $ExtraJoin WHERE $Conditions GROUP BY cc.ID ORDER BY cc.ID DESC LIMIT $Limit;"); $Count = $DB->record_count(); $DB->query("SELECT FOUND_ROWS()"); list($Results) = $DB->next_record(); $Pages = Format::get_pages($Page, $Results, $PerPage, 11); View::show_header($Title,'bbcode'); $DB->set_query_id($Comments); $Links = array(); $BaseLink = 'comments.php?action=collages' . (!$Self ? '&id='.$UserID : ''); if ($Mode != 'normal') { $Links[] = 'Display collage comments ' . ($Self ? 'you\'ve' : $Username . ' has') . ' made'; } if ($Mode != 'created') { $Links[] = 'Display comments left on ' . ($Self ? 'your collages' : 'collages created by ' .$Username) . ''; } if ($Mode != 'contributed') { $Links[] = 'Display comments left on collages ' . ($Self ? 'you\'ve' : $Username . ' has') . ' contributed to'; } $Links = implode(' ', $Links); ?>

0) { while (list($UserID, $CollageID, $Name, $PostID, $Body, $AddedTime) = $DB->next_record()) { $permalink = "collages.php?action=comments&collageid=$CollageID&postid=$PostID#post$PostID"; $postheader = " on $Name"; comment_body($UserID, $PostID, $postheader, $permalink, $Body, 0, $AddedTime, 0); } } else { ?>
No results.