Question

Is there a Syntax to display total clients in WHMCS (as a number)? If not, is there any way of doing this?

Was it helpful?

Solution

You can use this ode within your template files. Just put this lines of code within your /templates/yourtemplate/yourfile.tpl

{php}
$query ="SELECT COUNT(id) from tblclients ";

$result = mysql_query($query);
$data = mysql_fetch_array($result);
echo "total clients :".$data[0];

{/php}

OTHER TIPS

You can use getcontacts command for getting the total numbr of clients in WHMCS. You might want to have a look at this document:

http://docs.whmcs.com/API:Get_Contacts

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top