private function statspro::get_data_nuser in Statistics Pro 6
Same name and namespace in other branches
- 6.2 statspro.inc \StatsPro::get_data_nuser()
Returns the number of new users registered per day since the last run.
File
- ./
statspro.inc, line 489 - statspro class for statistics pro module.
Class
- statspro
- Manages the data saving and retrieval according to the user defined parameters.
Code
private function get_data_nuser() {
$result = db_query('SELECT COUNT(*) AS num, DATE(FROM_UNIXTIME(created)) AS dategroup
FROM {users}
WHERE uid > 0
AND created >= %d
GROUP BY dategroup', $this->last_run);
while ($row = db_fetch_array($result)) {
$this
->add_day_data($row['dategroup'], $row['num']);
}
}