Jump to content

Undo mysql insert/change made by php function


DJJQ

Recommended Posts

Hi,

I'm trying to make a regret function in php. I want this to work like if I make a mysql command with php, to have this button ready to undo the latest command made in the database. And not needing to enter by phpmyadmin etc.

Anyone know how to do this?

Link to comment
Share on other sites

This is the situation:

I have a online booking system which by php manipulates the database. In case if someone changes a booking by mistake I want them to be able to have a rollback function that undoes the latest command made in my mysql database.

I'm sorry if I explained badly earlier.

Link to comment
Share on other sites

If with the term correct you mean changing back to the previous state, then yes this is what I want to do. However the user is restricted in the number of commands he can make from my interface, if for lets the user flags a booking as paid he can't change it back.

If there is no simple rollback function I can of course allow the user to change it back himself.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.