VMinder Posted February 28, 2007 Share Posted February 28, 2007 I'm not sure if this is possible with PHP and MySQL though I am sure it is. I am working on a member database and I want to assign each member a specific and unique ID number. I don't want to do it manually if I have to, so I am wondering if anyone knows the line of coding I need to include inorder for the database to assign each member that is inserted into the database their own ID number. I've been looking all over the place for the answer, but have not found it yet. Any help would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/40604-solved-unique-id/ Share on other sites More sharing options...
btherl Posted March 1, 2007 Share Posted March 1, 2007 You can use auto_increment / serial, as described here: http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html Quote Link to comment https://forums.phpfreaks.com/topic/40604-solved-unique-id/#findComment-196559 Share on other sites More sharing options...
VMinder Posted March 1, 2007 Author Share Posted March 1, 2007 Thank you! I figured it out! Quote Link to comment https://forums.phpfreaks.com/topic/40604-solved-unique-id/#findComment-196603 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.