CodeIgniter Forums
Edit data, but only updated after approve by manager - 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: Edit data, but only updated after approve by manager (/showthread.php?tid=69924)



Edit data, but only updated after approve by manager - kelapamuda - 01-30-2018

Hi, how to do this,
Employee could update his data, but it is pending wait for boss approval. After boss approves, that the data is updated.
Could someone give me basic logic or idea ? 
Thanks everyone (please forgive my english)


RE: Edit data, but only updated after approve by manager - InsiteFX - 01-31-2018

1) Create an Employee temp table and store the same information in that table.
2) When approved move the data in the Employee temp table to the Employees table.


RE: Edit data, but only updated after approve by manager - andersonunsonst - 01-31-2018

create a column flg_status, for approved or not


RE: Edit data, but only updated after approve by manager - InsiteFX - 01-31-2018

He still needs a temp table or he will over write the Employees data.