[eluser]smash120[/eluser]
@sanir
I tried this but if I keep the is_unique[patient_info.account_num] part of the set_rules function it will never hit the check_duplicate function. So I removed it and know I get this error
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Patients::$duplicate_mod
Filename: controllers/patients.php
Line Number: 97
( ! ) Fatal error: Call to a member function check_unique() on a non-object in C:\wamp\www\drz\app\controllers\patients.php on line 97
Call Stack
# Time Memory Function Location
1 0.0010 389320 {main}( ) ..\index.php:0
2 0.0029 462288 require_once( 'C:\wamp\www\drz\sys\core\CodeIgniter.php' ) ..\index.php:202
3 0.5900 3913632 call_user_func_array ( ) ..\CodeIgniter.php:331
4 0.5900 3913680 Patients->update_patient_info( ) ..\CodeIgniter.php:331
5 0.5905 3916680 CI_Form_validation->run( ) ..\patients.php:78
6 0.6097 3922248 CI_Form_validation->_execute( ) ..\Form_validation.php:341
7 0.6101 3922976 Patients->check_duplicate( ) ..\Form_validation.php:593