added defualt data
This commit is contained in:
@@ -189,15 +189,13 @@ class Bko_Controller extends WRB_Controller {
|
||||
$data['total_members'] = 0;
|
||||
$data['total_balance'] = 0;
|
||||
$data['total_active_jobs'] = 0;
|
||||
|
||||
|
||||
$data['mobile_login'] = 0;
|
||||
|
||||
$mysql = "SELECT count(id) AS total_members FROM members WHERE status =1";
|
||||
$query = $this->db->query($mysql);
|
||||
$row = $query->row_array();
|
||||
$data['total_members'] = $row['total_members'];
|
||||
|
||||
|
||||
$mysql = "SELECT count(id) AS mobile_login FROM mobile_login WHERE added::date = now()::date";
|
||||
$query = $this->db->query($mysql);
|
||||
$row = $query->row_array();
|
||||
|
||||
Reference in New Issue
Block a user