Immortal55 Posted March 16, 2006 Share Posted March 16, 2006 How do i assign ID's to my database input, for instance if somebody fills in a field with something, and that is recorded to the DB how do I assign an ID to the entry (ie 1, 2, 3 4, ...)? Quote Link to comment Share on other sites More sharing options...
Gaia Posted March 16, 2006 Share Posted March 16, 2006 You would have to make a row in your MySQL table called ID ( doesn't have to be ID, but something similiar ) and choose the option auto increment. It will then automtically increment that field when you insert information. Quote Link to comment Share on other sites More sharing options...
Immortal55 Posted March 17, 2006 Author Share Posted March 17, 2006 Ah, wow thanks a lot. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.