EVOLUTION-NINJA
Edit File: ReceptionModel.php
<?php namespace App\Models; use CodeIgniter\Model; class ReceptionModel extends Model { protected $table = 'gss_new_receptions'; protected $primaryKey = 'id'; protected $allowedFields = ['patient_id', 'doctor_id', 'reception_date', 'status']; protected $useTimestamps = false; // Optionally, you can define validation rules protected $validationRules = [ 'patient_id' => 'required|integer', 'doctor_id' => 'required|integer', 'reception_date' => 'valid_date', 'status' => 'required|string|max_length[50]' ]; public function get_where_result($table, $where) { return $this->db->table($table) ->where($where) ->get() ->getResult(); } }