File: //var/www/html/qcr24/app/application/models/admin/Mactivity_log.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Mactivity_log extends CI_Model {
public function __construct() {
parent::__construct();
}
public function get_activity_log_details(){
$this->db->select('al.*,ma.full_name');
$this->db->from('activity_log al');
$this->db->join('master_admin ma', 'ma.user_id = al.created_by', 'inner');
$this->db->order_by('al.activity_log_id','desc');
$query=$this->db->get();
return $query->result_array();
}
}