I solved My problem
File location: D:\xampp\htdocs\mvc\models\Loginlog_m.php
Change this file contain with bellow code
<?php if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Loginlog_m extends MY_Model
{
protected $_table_name = 'loginlog';
protected $_primary_key = 'loginlogID';
protected $_primary_filter = 'intval';
protected $_order_by = "loginlogID asc";
public function __construct()
{
parent::__construct();
}
public function get_loginlog($array = null, $signal = false)
{
return parent::get($array, $signal);
}
public function get_order_by_loginlog($array = null)
{
return parent::get_order_by($array);
}
public function get_single_loginlog($array = null)
{
return parent::get_single($array);
}
public function insert_loginlog($array)
{
try {
parent::insert($array);
return true;
} catch (Exception $e) {
// Log the error or handle it as needed
// For example, you can show a user-friendly message
// echo 'Error: ' . $e->getMessage();
return false;
}
}
public function update_loginlog($data, $id = null)
{
parent::update($data, $id);
return $id;
}
public function delete_loginlog($id)
{
parent::delete($id);
}
}