![]() |
getting user data for graph - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: getting user data for graph (/showthread.php?tid=61205) |
getting user data for graph - El Forum - 10-15-2014 [eluser]riwakawd[/eluser] What is the best way to create a function on the controller that can count the number of users that joined for that month and gets the total and then each column represents a month. Can not seem to work it out how to do it so then could be the script could get the data from controller. Code: <!-- Links Work OK --> Code: class Chart extends MX_Controller { getting user data for graph - El Forum - 10-16-2014 [eluser]InsiteFX[/eluser] Add a user_joined date field to your users table then it should be easy to do the calculations. |