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, ...)? Link to comment https://forums.phpfreaks.com/topic/5082-ids-assigned-to-db-info/ 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. Link to comment https://forums.phpfreaks.com/topic/5082-ids-assigned-to-db-info/#findComment-18027 Share on other sites More sharing options...
Immortal55 Posted March 17, 2006 Author Share Posted March 17, 2006 Ah, wow thanks a lot. Link to comment https://forums.phpfreaks.com/topic/5082-ids-assigned-to-db-info/#findComment-18170 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.