the field data type you defined in your db is integer, and you are trying to enter varchar (alphabets) in your form too.
thats why i think its giving you errors.
you can check in PHP, so that it returns error before saving it to db, and user has to re-enter the data.
or else you can define the data type to be varchar in db too, and it will not give you any errors.