diff --git a/pages/wot/10.php b/pages/wot/10.php index f355002..51ed019 100644 --- a/pages/wot/10.php +++ b/pages/wot/10.php @@ -23,15 +23,21 @@ '$rc' ORDER BY `notary`.`when` DESC"; +*/ + $query = "SELECT count(*) AS `list` FROM `users` + inner join `notary` on `users`.`id` = `notary`.`from` + GROUP BY `notary`.`from` HAVING count(*) > '$rc'"; + $rank = mysql_num_rows(mysql_query($query)) + 1; ?>