I have a Perl Script that processes a form input and adds the result to a mySQL database. The problem I'm having is that I would like to autoincrement the primary key. I can't seem to get this to cooperate. Can anyone provide any insight? At this point, this only works once, and set's the variable idnum (which is the primary key) to 1. If I delete the entry, then add again from the form, it will create a new entry with idnum = 1, but if there is anything in the database under idnum = 1, it errors out. I would love to have a database of more than one entry. Any help would be greatly appreciated.