Jump to content

Display number of registered clients and services publicly


Recommended Posts

hey guys,


i want to let my users know how many clients that have signed up and how many have signed up for a hosting account. maybe other info too...


is there a way to grab those numbers and show them on the public site (not clientarea) in a secure way?



/ layz

Link to comment
Share on other sites



Widget by RDG
<script language="javascript" src="http://(yourwhmcs)/widgets/clients-2011.php"></script>

       $sql    = "SELECT COUNT(*) FROM tblclients WHERE datecreated>'2010-12-31' AND datecreated<'2012-01-01'";
       $query  = mysql_query($sql) or die ("query failed");
       $row    = mysql_fetch_array($query);
       $_value = $row[0];


function widgetoutput($value) {
   echo "document.write('".addslashes($value)."');";

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated