Answer the question
In order to leave comments, you need to log in
How to avoid auto-increment increase on unsuccessful request?
The users table has two unique fields login and email.
If you try to add a record where the login or email is not unique, the request will fail, the record will not be added, but auto-increment will add one. And the next successful id will be one more. How to avoid it?
Answer the question
In order to leave comments, you need to log in
Check your username and email before proceeding. No => insert. Yes => error
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question