From de95d1dc0ae074afdef51651b62b9ae1c8cbde87 Mon Sep 17 00:00:00 2001 From: xiaomlove <353856593@qq.com> Date: Wed, 31 Mar 2021 16:40:15 +0800 Subject: [PATCH] allagents.php show counts --- public/allagents.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/allagents.php b/public/allagents.php index 38fced11..cfc48777 100644 --- a/public/allagents.php +++ b/public/allagents.php @@ -4,13 +4,13 @@ dbconn(); loggedinorreturn(); if (get_user_class() < UC_MODERATOR) stderr("Error", "Permission denied."); -$res2 = sql_query("SELECT agent,peer_id FROM peers GROUP BY agent ") or sqlerr(); +$res2 = sql_query("SELECT agent,count(*) as counts FROM peers GROUP BY agent order by agent asc") or sqlerr(); stdhead("All Clients"); print("
| Client | Peer ID |
| Client | Counts | {$arr2['agent']} | {$arr2['peer_id']} | \n"); + print("{$arr2['agent']} | {$arr2['counts']} | \n"); } print("