Before i do the attendance form system, I have to do the student registration form. But there is one problem. I tested the student registration form (register.php) and tried to register myself to the database, but my data did not register to the database. I've done the coding correctly in the form.
Second problem is that you refer to a table called 'users' which should be 'student' going by the MySql schema.
Third problem, change your first value in the sql statement from '' to null so the id column updates correctly.