EVOLUTION-NINJA
Edit File: user_model.php
<?php namespace App\Models; use CodeIgniter\Model; class user_model extends Model { protected $table = 'user_registrations'; // Replace with your actual table name protected $primaryKey = 'user_id'; // Replace with your actual primary key column name protected $allowedFields = [ 'full_name', 'address', 'qualification', 'current_occupation', 'present_location', 'session_type', 'duration', 'terms_and_conditions', 'registration_status', 'updated_by', 'updated_at', ]; public function updateUserRegistration($loginId, $data) { return $this->where('login_id', $loginId)->set($data)->update(); } public function updateLogin($loginId, $data) { return $this->where('login_id', $loginId)->set($data)->update('login'); } }