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

TriviaTime

Players

Show stats for users.

Search

Username:
prepare('select tl.username, sum(tl.points_made) as points, sum(tl.num_answered) as total from triviauserlog tl where tl.username_canonical like :username group by tl.username_canonical limit 20 '); $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['username'])) { 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 ''; } } } ?>
Username Total Points Question Answered*
' . $res['username'] . '' . number_format($res['points'],0) . '' . number_format($res['total'],0) . '

* These stats do not include KAOS