We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1099
    • 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
      [IMG]http://i12.tinypic.com/63sd4kk.png[/img]
      The First Iranian Aquarium Forum
      www.ALiaqua.com
      The First Iranian Aquarium Magazine
      www.Aliaqua.com
      • 26903
      • 1,336 Posts
      Try :-
      $userCollection = $modx->getCollection('modUser', array('blocked' => 0));
      $users = count($userCollection)
      
        Use MODx, or the cat gets it!