on-internet
← Community

Getting trouble in assigning id value in database in php [duplicate]

Stack Overflow ·

I am writing a simple registration page using PHP and a MySQL database. id column of Table is defined as "AUTO INCREMENTED". The registration process is working well, i.e. data is getting inserted into the database. Currently I have 3 records in my table: Raghvendra Surendra Mohit Now my problem is: when I delete the 3rd record ("3. Mohit"), my database table now looks like this: Raghvendra Surendra Now, when I add another record, my table looks like this: Raghvendra Surendra Varun What is want is something like this: Raghvendra Surendra Varun Sorry for my english.. please help me!

Comments

Sign in or sign up to comment and upvote.

No comments yet.