I just want to know can we use this in CodeIgniter..
$this->form_validation->set_rules('marriage_id', 'Marriage ID','required|is_unique[marriage.marriage_id]|matches[person.marriage_id]');
marriage is my table name and marriage_id is a field in that table.
Person is another table and it also have marriage_id field.From above controller code, I'm inserting data into marriage table and i want to know that can I check, it matches with the marriage_id in person table or not.