1. messagedj
  2. Features Request
  3. Tuesday, May 05 2015, 09:35 PM
i am looking for a php code i can use to show the total amount of registered users..

hope you can help me
admin Accepted Answer
Admin
Hi,
You can do this with a simple query on Joomla #__users table

$db=JFactory->getDbo();
$query=$db->getQuery(true);
$query="SELECT count(id) FROM #__users"
$db->setQuery($query);
$count=$db->loadResult();


NOTE: this code is not supported and not tested
  1. more than a month ago
  2. Features Request
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.