frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Count clients

0
edited June 14 in Features Request

Hi Managerians,
A user asked for a way to get clients count. He wants to get all active/inactive clients for a given period. The next release will integrate this request. But if you hate waiting, here is a non-official code to achieve this.
1. Download the functions_helper.php.txt file attached to this message
2. Rename it to functions_helper.php and upload it to application/helpers/ to replace the current file. You are DONE !
3. The function literal is count_clients($status, $period=null) . So you can now use anywhere this code <?php echo count_clients('all', 'this_month'); ?> It will return an integer.

Note that the options available are:
$status: all, active, inactive
$period: this_month, last_month, this_year, last_year

If you are comfortable with php and mysql, you can set a more flexible date range with a dynamic calendar. Don't hesitate to post here your code. Let's Build Together a Great App !
Eric

Tagged:

Comments

Sign In or Register to comment.

m'Manager

| Let's Build Together a Great App !
If you are a happy user, send me a coffee.
2015 - 2107 © m'Manager.
Powered by VanillaForums, Designed by ThemeSteam

Recent Donations

  • Patricia from Sjopz.com - 10€
  • AskinSavascisi from wolftech.com - 3€
  • Get In Touch