How to get the ID of the last insert.
- by James Jeffery
I have an application and around 20 accounts are created per minute (on average). I need to implement a new feature which requires the ID of the last insert.
I am using PDO.
The question is, lets say 5 users create accounts at exactly the same time. Will it return the ID from the database for that users profile that was just created, or will it return the last insert?
If you get what I mean.