How can I generate a progressive sequential unique id in PHP?
For example, the order should be this:
aaaaaa < aaaaab < aaaaac etc…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
uniqid()is increasing (an ID generated later will always be greater than one generated earlier) but will not be sequential (there will be gaps).Otherwise, find a way to save the last generated ID, and increment it when you generate a new one.