Domanda

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

È stato utile?

Soluzione

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}

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top