If the user has a unique username, just do SELECT matching the username in order to get the id. If not, you're probably going to just have to assign your own ids instead of using auto_increment.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.