Jump to content

Archived

This topic is now archived and is closed to further replies.

Immortal55

ID's assigned to DB info

Recommended Posts

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, ...)?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.