Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Count Members
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Tmpj
Junior Member

Denmark
467 Posts

Posted - 08 October 2002 :  05:56:33  Show Profile
I need to have the total Members count, how do I do that?

laser
Advanced Member

Australia
3859 Posts

Posted - 08 October 2002 :  05:57:30  Show Profile
scroll down to the bottom of the forum home page.
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 08 October 2002 :  07:21:10  Show Profile  Visit Gremlin's Homepage
SELECT COUNT(*) FROM FORUM_MEMBERS

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

Tmpj
Junior Member

Denmark
467 Posts

Posted - 08 October 2002 :  08:32:37  Show Profile
Hey Gremlin, can you make me a complete conn string where ASP connects to the database and counts the number of members. And so I could use it so:

if countmember > 5 then
...
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 08 October 2002 :  08:51:01  Show Profile  Visit Gremlin's Homepage

strConnString = Use your own Snitz connection String Here

set my_Conn = Server.CreateObject("ADODB.Connection")
my_Conn.Open strConnString

strSQL = "SELECT Count(*) AS CountMember FROM forum_Members"
set rsMember = my_Conn.Execute(strSQL)
CountMember = rsMember("CountMember")

if CountMember > 5 ....

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

Tmpj
Junior Member

Denmark
467 Posts

Posted - 08 October 2002 :  13:48:09  Show Profile
Thank You Very Much!!!

Edited by - Tmpj on 08 October 2002 13:51:00
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 08 October 2002 :  17:50:41  Show Profile  Visit Gremlin's Homepage

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07