Welcome Guest, Not a member yet? Register   Sign In
how to make the email not unique when editing
#2

[eluser]Otemu[/eluser]
Hi,

You could check if in edit mode and apply a rule

if(!$editmode){
$this->form_validation->set_rules('email', 'Email', 'trim|required|is_unique[users.email]|valid_email');
}else{
//do something else
}


Messages In This Thread
how to make the email not unique when editing - by El Forum - 12-10-2013, 01:50 AM
how to make the email not unique when editing - by El Forum - 12-10-2013, 04:59 AM
how to make the email not unique when editing - by El Forum - 12-10-2013, 05:06 AM
how to make the email not unique when editing - by El Forum - 12-10-2013, 06:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB