"|", "["=>"{", "]"=>"}", "~"=>"^"); $usernameCanonical = strtr($username, $ircLowerSymbols); $usernameCanonical = strtolower($usernameCanonical); } else { $username = ''; $usernameCanonical = ''; } ?> Players · TriviaTime

TriviaTime

Players

Show stats for users.

Search

Username:
prepare('select tl.username as usrname, sum(tl2.t * (tl2.n / (select sum(num_answered) from triviauserlog where username_canonical=:username)) ) as count, sum(tl2.p * (tl2.n / (select sum(num_answered) from triviauserlog where username_canonical=:username)) ) as score, (select sum(points_made) from triviauserlog t3 where username_canonical=:username) as points, (select sum(num_answered) from triviauserlog t4 where username_canonical=:username) as q_asked, (select num_editted from triviausers where username_canonical=:username) as num_e, (select num_editted_accepted from triviausers where username_canonical=:username) as num_e_accepted, (select num_questions_added from triviausers where username_canonical=:username) as num_q, (select num_questions_accepted from triviausers where username_canonical=:username) as num_q_accepted, (select num_reported from triviausers where username_canonical=:username) as num_r from (select tl3.id as id2, tl3.average_time * 1.0 as t, tl3.average_score * 1.0 as p, tl3.num_answered * 1.0 as n from triviauserlog tl3 ) tl2 inner join triviauserlog tl on tl.username_canonical=:username and tl.id=tl2.id2 '); $q->execute(array(':username'=>$usernameCanonical)); if ($q === false) { die("Error: database error: table does not exist\n"); } else { $result = $q->fetchAll(); foreach($result as $res) { if(is_null($res['usrname'])) { echo "
User not found.
"; } } } } else { if(isset($err)) { die($err); } else { echo "
Enter a username above to search for stats.
"; } } ?>

Player data

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } } } ?>
Username Average Time/Question* Average Points/Question* Total Points Question Answered* Edits Made Edits Accepted Questions Made Questions Accepted Reports Made
' . $res['usrname'] . '' . number_format($res['count'],2) . '' . number_format($res['score'],2) . '' . number_format($res['points'],0) . '' . number_format($res['q_asked'],0) . '' . number_format($res['num_e'],0) . '' . number_format($res['num_e_accepted'],0) . '' . number_format($res['num_q'],0) . '' . number_format($res['num_q_accepted'],0) . '' . number_format($res['num_r'],0) . '

* These stats do not include KAOS