> I am trying to set mysql db table, and I want primary key to be > autincremented every time when I add new record to db table. Don't set the field in your form. Setting an auto increment field causes your value to be used instead. For the increment to work, the field should be null. Jonathan Webmaint.