I have a need that I do not know how to accomplish.
Well, my problem:
I have a is_unique field that refers to two fields in my DB, IDENTIFIER, and PLANT. Would you like to know how to perform this validation?
For a single field I use this way:
$imeiRules = "required|min_length[3]|max_length[45]|xss_clean|strip_tags";
if($this->input->post('txtImei') != $this->input->post('imeiOld')){
$imeiRules .= " |is_unique[equipamento.equipamento_imei]";
}
I just do not know what to do with single fields.