sunilpaladugu Posted April 16, 2011 Share Posted April 16, 2011 hi all i am listing my problem here i have a table like Table1 id name age after inserting record here id name age 1 sunil 27 after inserting secod record id name age 1 sunil 27 1 kumar 27 Here I am changing my name sunil to kumar ,I am appending my changed record as a new row for the same id now i need to store the old name and new name in separate table result table id oldname newname 1 sunil kumar Its so urgent plz reply fast. Quote Link to comment https://forums.phpfreaks.com/topic/233868-keep-store-of-old-records/ Share on other sites More sharing options...
kickstart Posted April 16, 2011 Share Posted April 16, 2011 Hi Have an extra column which is the version number of the row. When you want to update a record add one to the version number(s) of the matching records and insert the new one as version zero. All the best Keith Quote Link to comment https://forums.phpfreaks.com/topic/233868-keep-store-of-old-records/#findComment-1202339 Share on other sites More sharing options...
fenway Posted April 19, 2011 Share Posted April 19, 2011 And there is no such thing as urgent free help. Quote Link to comment https://forums.phpfreaks.com/topic/233868-keep-store-of-old-records/#findComment-1203441 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.