[Solved] I can create a student but it doesn’t save on mysql table. i get a console error that i can figure it out what it is [closed]


count the columns in your statement! There are seven columns but six values:

INSERT INTO alumnos(legajo,nombre,apellido,curso,dni,edad,fechanc) "
          + "VALUES(?,?,?,?,?,?)");

you easily forgott a questionmark(column place holder) try this:

INSERT INTO alumnos(legajo,nombre,apellido,curso,dni,edad,fechanc) "
          + "VALUES(?,?,?,?,?,?,?)");

solved I can create a student but it doesn’t save on mysql table. i get a console error that i can figure it out what it is [closed]