you need to check for existance of the ID before trying to insert a new record. If it exists prompt the user to enter a new ID or can increment the max(id) by 1 and continue.
debasisdas 580 Posting Genius Featured Poster
debasisdas 580 Posting Genius Featured Poster
debasisdas 580 Posting Genius Featured Poster
debasisdas 580 Posting Genius Featured Poster
debasisdas 580 Posting Genius Featured Poster
logonchristy commented: nice.. +1