Can not Update Data - 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: Can not Update Data (/showthread.php?tid=64971) |
Can not Update Data - RK Info - 04-15-2016 Hello Everyone ! i am working on Codeigniter... im trying to do simple thing ! i have a form in which there is different section..actually it looks there is 5 form in one page but i have taken only one form with one submit button.. not what the issue is,if i m going to fill up the second form then third form's data is deleted in DB While second Form's data can inserted but another form's data is deleted here is my Code of Controller PHP Code: $Resume = $this->input->post(); $ResumeInsert=array(); here is my Model PHP Code: function ProcessData($idsToDelete,$tbl_resumeUpdate,$user_id,$tbl_resumeInsert,$imgInsert,$imgUpdate){ im very Confuse About This code ! last form's data deleted when im going to insert/update any form please any help? RE: Can not Update Data - cartalot - 04-15-2016 i don't know if anyone on the forum is going to try and tackle this, but this is not a "simple thing". my suggestion would be to start over with something much simpler - like two fields. get that working. then add the rest of the fields. also suggest that you refactor your ProcessData method in your model - its doing way too much. the more responsibilities a method has, the more difficult it is to debug. |