How to update account when user don't want to update all database field - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How to update account when user don't want to update all database field (/showthread.php?tid=64020) |
How to update account when user don't want to update all database field - ashisbiswas - 01-04-2016 suppose this is my controller Code: class Admin extends CI_Controller{ Code: //Update admin account But the problem is when user just change the username validation error will be occurred because i have set the value of the field on my form Code: <div class="form-group"> Same problem occurred if user change email or username the password field also updated with the value of password textbox. How can i overcome this error. Should i have to update each field seperatly with seperate form? RE: How to update account when user don't want to update all database field - mr_pablo - 01-04-2016 Below is my Controller method for letting users update their details. I am using ion_auth to update the details, but it's simply a Model wrapper. PHP Code: public function index() |