So I have a form create with various field (connected to database). When a user clicks all the data is stored in database.
However I wish to create a unique ID if any user submits the data. I understand that in order to do so a program needs to sort the data in descending order (by date) and then add +1 to the latest ID.
Can someone help with such a code?