This has to be an easy one...

I need a php snippet to get the total number of users registered.

Thanks!

Comments

nevets’s picture

This should do the trick

<?php
$sql = 'SELECT COUNT(uid) as count FROM {users} where status = 1';
$count = db_result(db_query($sql));
?>
kkobashi’s picture

Thanks Nevets