require_once('include.php');
$topic = "Käyttäjätilastoja";
require_once('top.inc');
?>
foreach (dbArr('select nick, count(vote) as amount, avg(vote) as average from votes, kaatajat where votes.user_id = kaatajat.id group by user_id order by amount desc, user_id desc limit 15') as $ind => $row) {
?>
| 1. |
|
0.0/10 ( ääntä) |
}
?>
Listalla käyttäjät, jotka ovat äänestäneet eniten.
foreach (dbArr('select nick, count(*) as amount from kaatajat, forum_post where kaatajat.id = forum_post.user_id group by user_id order by count(*) desc limit 5') as $ind => $row) {
?>
| 1. |
|
postausta |
}
?>
Listalla käyttäjät, jotka ovat kirjoitelleet forumille eniten.
foreach (dbArr('select nick, count(*) as amount from kaatajat, comments where kaatajat.id = comments.user_id group by user_id order by count(*) desc limit 10') as $ind => $row) {
?>
| 1. |
|
kommenttia |
}
?>
Listalla käyttäjät, jotka ovat kirjoittaneet eniten kommentteja.
foreach (dbArr('select nick, sum(vote) as votes from comment_votes, kaatajat where c_user_id=kaatajat.id group by c_user_id order by votes desc limit 10') as $ind => $row) {
?>
| 1. |
|
+ pistettä |
}
?>
Listalla käyttäjät, joiden kommentit ovat saaneet eniten pisteitä.
foreach (dbArr('select nick, user_id, count(*) as amount from store, kaatajat where store.user_id = kaatajat.id group by user_id order by count(*) desc limit 5') as $ind => $row) {
?>
| 1. |
|
juomaa |
}
?>
Listalla käyttäjät, joiden viinakaapit ovat suurimmat.
require_once('bottom.inc');