there is not any error in code .. the code was work without any problem .. the error in database .. How can I repair the database..

also when I try to insert new row using phpmyadmin I face the same problem.