CodeIgniter Forums
Edit data from column A but update to column B - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Edit data from column A but update to column B (/thread-70150.html)



Edit data from column A but update to column B - kelapamuda - 03-01-2018

Hi, i create a system where employee update data, but only after approved by manager it become updated.
Some of  the column are this : 

The Address, New Address    

When a employee update, his data will input to "new address".  So i want, when the manager clik edit button, the content of "new Adress" will go to address (updating column "the address"). How to do this?


RE: Edit data from column A but update to column B - InsiteFX - 03-01-2018

Copy new_address to the_address and run an update query on the database.

If you need to update the html view then you would need to use jQuery etc;