limitphp Posted October 10, 2008 Share Posted October 10, 2008 I am using wampserver 2.0, in the phpmyadmin I created a table. I want the table to have a primary key of voteID (integer type), which I setup. Is it possible to have the voteID field auto generate a number? I'm using php 5.2.6 Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/127883-solved-autonumbering-a-primary-key-field-in-mysql/ Share on other sites More sharing options...
limitphp Posted October 10, 2008 Author Share Posted October 10, 2008 I figured it out. Under extras I selected auto_increment. Quote Link to comment https://forums.phpfreaks.com/topic/127883-solved-autonumbering-a-primary-key-field-in-mysql/#findComment-662109 Share on other sites More sharing options...
taichimasta Posted October 10, 2008 Share Posted October 10, 2008 no offense but you should play around and look at all attributes of phpmyadmin or pick up a book or just type it in google, that way you don't feel lost in the beginning of what your doing. Quote Link to comment https://forums.phpfreaks.com/topic/127883-solved-autonumbering-a-primary-key-field-in-mysql/#findComment-662269 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.