From 9668461df9b2b5ac18d21610629797e40bd6c64a Mon Sep 17 00:00:00 2001 From: x2000chevalier Date: Sun, 31 Oct 2004 15:54:45 +0000 Subject: [PATCH] To count the number of members, you just have to look into auth_user_md5 --- plugins/insert.getNbIns.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/insert.getNbIns.php b/plugins/insert.getNbIns.php index 8f335c1..974452e 100644 --- a/plugins/insert.getNbIns.php +++ b/plugins/insert.getNbIns.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: insert.getNbIns.php,v 1.4 2004-10-08 20:35:24 x2000chevalier Exp $ + $Id: insert.getNbIns.php,v 1.5 2004-10-31 15:54:45 x2000chevalier Exp $ ***************************************************************************/ /* @@ -33,8 +33,7 @@ function smarty_insert_getNbIns($params, &$smarty) { global $conn; - $result=mysql_query("SELECT COUNT(*) FROM auth_user_md5 AS a INNER JOIN identification AS i - ON a.matricule=i.matricule where i.deces = 0",$conn); + $result=mysql_query("SELECT COUNT(*) FROM auth_user_md5 WHERE deces = 0 AND perms != 'non-inscrit'",$conn); list($stats_count)=mysql_fetch_row($result); mysql_free_result($result); return number_format($stats_count, 0, ",", "."); -- 2.1.4