-
- 34 Posts
Hi all
I want to get all users in users table and then count not blocked user. How can i do that.
thx
-
- 1,336 Posts
Try :-
$userCollection = $modx->getCollection('modUser', array('blocked' => 0));
$users = count($userCollection)
Use MODx, or the cat gets it!