CodeIgniter Forums
Codeigniter is_unique form Validation rule is not working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Codeigniter is_unique form Validation rule is not working (/thread-48198.html)



Codeigniter is_unique form Validation rule is not working - El Forum - 01-07-2012

[eluser]Unknown[/eluser]
i am using codeigniter 1.7.2. To check the unique entry of a field i am using is_unique in form validation rules. but this thing is not working.

what should i do. Need some help here:

Code:
$this->form_validation->set_rules('cname','company name','required|xss_clean|is_unique[company_basic.company_name]');

there is no error either..