Hello,I am making a website in JSP celled employee info system.In this whenever a new emp. registers in the system he is given a unique employee id. Currently in my registration page the employee himself will have to manually enter a unique id.Is there a way in which the unique id is generated serially and dynamically .How to do this.Please help.
srinivas88 0 Light Poster
Recommended Answers
Jump to PostWhy you are making more difficult to your self? Why do you not let a user fill in registration form and then on successful submit let him/her know what was auto-generated id in the table?
Jump to PostWhen you are declaring your tables you need to use AUTO_INCRMENT for MySQL for example or
All 7 Replies
apines 116 Practically a Master Poster Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
srinivas88 0 Light Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
srinivas88 0 Light Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
srinivas88 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.