added defualt data

This commit is contained in:
CHIEFSOFT\ameye
2024-05-10 12:07:58 -04:00
parent 8c80b5d962
commit 60583b47ab
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -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();