Jump to content
MakeWebGames

Recommended Posts

Posted

Hey guys i had a few user signup to my game but i then deleted them. but now if any one signs up there id is the next in line after the deleted so.For example if i deleted user id 2 the next register user would become 3 even thought 2 was avalable.How would i fix this

Posted

Re: [Mccodes v2] userid help

on phpmyadmin, go to the correspondent table (user and userstats), on the "Operations" tab, inside "Table Options" change the "AUTO_INCREMENT" value to the next id you want to use

Posted

Re: [Mccodes v2] userid help

i dont know waht one to put it in i have open it up but the auto increment is in a drop down what box do i type the number in?

Posted

Re: [Mccodes v2] userid help

 

run this in phpmyadmin

 

ALTER TABLE users AUTO_INCREMENT = 1

 

Not quite... that will generate an error as userid 1 is already in use.. ;)

Posted

Re: [Mccodes v2] userid help

 

run this in phpmyadmin

 

ALTER TABLE users AUTO_INCREMENT = 1

 

Not quite... that will generate an error as userid 1 is already in use.. ;)

nope thats wrong it doesn't set it back to 1

that sets it to the last entry value +1

ie if last userid was 8 it will set it to 9

its what i use when i've deleted users

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...