I'm working on a system in which I must register various data from a form in different tables using mysql. It works like this: The person does a registration and in the same form requests a special attention, I save his data normally and with his ID, which is generated by self-increment, I save the data of the request [id, ...]. If all goes right, beauty. But the question is, what if the application file goes wrong? Should I delete the user, give the error message and return to the register for it to register again? What's the best way out?