Jump to content


unique field

unique field

  • Please log in to reply
2 replies to this topic

#1 doodz

doodz

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 21 August 2015 - 03:10 PM

unique field trigger in update. how i will prevent this . this is my code 

$crud = new grocery_CRUD();
 
$crud->set_table('ekom_member');
$crud->set_subject('Member');
$crud->columns('LastName', 'FirstName', 'Email', 'Password');
 
 
 
$crud->add_fields('LastName', 'FirstName', 'Email', 'Password','confirm_password');
$crud->edit_fields('LastName', 'FirstName', 'Email', 'Password','confirm_password');
 
$crud->set_rules('Password', 'Password', 'required');
        $crud->set_rules('confirm_password', 'Password Confirmation', 'required|matches[Password]');
        $crud->set_rules('Email', 'Email', 'required|valid_email|is_unique[ekom_member.Email]');
 
$crud->callback_before_update(array($this,'unset_email'));
 
$output = $crud->render();
 
$this->_example_output($output);   

 



#2 doodz

doodz

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 22 August 2015 - 02:45 AM

help pls 



#3 doodz

doodz

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 22 August 2015 - 04:46 AM

help pls







Also tagged with one or more of these keywords: unique field

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users