In this little tutorial I will show you how you can count number of users in a group.. This was requested by wapkatutor members so we are adding it..
First let me introduce the group option in wapka.. :)
Think that you wanted to separate girls and boys in your site, you can do this with Groups function in wapka.. The Groups function allows you to make group of users.. Like Boys and Girls, Co-workers and family etc..
You can create new groups, delete the groups that you don't need any more, make changes, add users to the group and many many more options..
Goto ES > USERS > Click GROUPS link > You can do whatever written above and can do more as well [This is not the scope of this tutorial]
For this tutorial I am creating 2 groups.. i.e. ONE and TWO, now add some users to ONE and others to TWO group.. You should know the Group ID's that are written there after the # sign..
After this you will need the following code to count the users in group..
Now in above code change [ID] with the Group ID..i.e. 1
This will count all the users in Group ID 1 and will show its total number.. You can write any text before and after the code. For example you can write There are 23 Boys and 34 Girls in our site..
This is it, you have learnt how to count members in a group in your lovely wapka site... Keep visiting wapkatutor to get more about wapka!!
Join our facebook page
Create your own free wapsite in minutes
Request New Tutorials