Hi,
I am using PHP/MySQL to build an application.
My application is a multi-user application where in more then 1 people will be entering data.
There is an employee table in my database [I]tbl_employee[I]serial_no[I]tbl_employee
[B]Now Problem
If there are 5 people doing the addition of employee simultaneously then all of those 5 people will be adding the next employee code as EMP0051.
[B]Question:
How can we prevent from inserting duplicate employee nos. under such scenario?
Plz Help ?