What could be done to get the old values back in the table after execution of any update query on it ?
I am using PHP and Mysql DB
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By default: nothing. There is no way.
Unless maybe:
BEGIN) and did not yet COMMIT. You
can then ROLLBACK.
But otherwise, nope, sorry. The information is lost.
You should start thinking about doing one of the things stated above (backups are a MUST!, logging is adviseable while developing if your server can handle it) to avoid these situations in the future.