\n"; echo " ".$n."\n"; while($o = mysql_fetch_object($r)) { echo " \n"; printf(" "); printf(" ",$o->id,$o->avatar); printf(" %s",$o->id,htmlentities($o->nickname)); printf(" "); printf(" %d",$o->c); echo " \n"; } echo "\n"; } echo "
"; dumplist("SELECT count( * ) AS c, users.nickname, users.id, users.avatar FROM bbs_posts JOIN users ON users.id = bbs_posts.author GROUP BY bbs_posts.author ORDER BY c DESC LIMIT 20","most bbs posts"); dumplist("SELECT count( * ) AS c, users.nickname, users.id, users.avatar FROM bbs_topics JOIN users ON users.id = bbs_topics.userfirstpost GROUP BY bbs_topics.userfirstpost ORDER BY c DESC LIMIT 20","most bbs topics"); dumplist("SELECT count( * ) AS c, users.nickname, users.id, users.avatar FROM comments JOIN users ON users.id = comments.who GROUP BY comments.who ORDER BY c DESC LIMIT 20","most prod comments"); dumplist("SELECT count( * ) AS c, users.nickname, users.id, users.avatar FROM oneliner JOIN users ON users.id = oneliner.who GROUP BY oneliner.who ORDER BY c DESC LIMIT 20","most oneliners"); /* dumplist("SELECT count( * ) AS c, users.nickname, users.id, users.avatar FROM bbs_posts JOIN users ON users.id = bbs_posts.author WHERE bbs_posts.post LIKE '%[img%' GROUP BY bbs_posts.author ORDER BY c DESC LIMIT 20","most bbs posts with images"); */ echo "
"; echo "
"; ?>
users who haven't commented on any prods: c; ?>
users who haven't posted on the bbs: c; ?>
users who haven't wrote on either: c; ?>
users who only posted in the random image thread: c; ?> */ require("include/bottom.php"); ?>