There a table in database with name add_sample to store the student sample records. I was storing the inserted information against the auto_increment id but now i want to assign a unique id like 35801 instead of that auto_increment id(e.g 1.) to the first student who entered his/her data. For the second user it should be 35802 and for third it should be 35803 and so on till 99. But when the student number reach to the 100 it should add the 100 to the 3580 to start a new series 36801.
I expect like this:
unique ID | Name | Email | Number_of_Sample | sample_Type
35801 | john | john@gmail.com | 3 | fiber
unique ID | Name | Email | Number_of_Sample | sample_Type
35801 | john | john@gmail.com | 3 | fiber
35802 | sam | sam@gmail.com | 1 | yarn