From 678f1c6731446528aeaf0076407f34e9e133dc47 Mon Sep 17 00:00:00 2001 From: Philipp Dunkel Date: Tue, 23 Jun 2009 20:53:34 +0000 Subject: [PATCH] Speed improvements by Dirk --- pages/wot/10.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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; ?>