require("include/top.php");
?>
if ($_GET["avatar"]) {
$sql = "SELECT avatar, id, nickname FROM users WHERE BINARY avatar = '".mysql_real_escape_string($_GET["avatar"])."'";
$r = mysql_query($sql);
while ($o = mysql_fetch_object($r)) {
?>
|
=$o->nickname?> |
}
} else {
$sql = "SELECT avatar, count( * ) AS c FROM users GROUP BY BINARY avatar ORDER BY c DESC limit 50";
$r = mysql_query($sql);
while ($o = mysql_fetch_object($r)) {
?>
=$n?>. |
|
c,false);?> |
}
}
?>
require("include/bottom.php"); ?>