Registering users through php, but having issues

it's mainly another set of eyes here as I can't visibly see any errors and it isn't posting any. I am attempting to create a user registration form using PHP/SQL for part of an assignment, but when I hit register, it doesn't come up with anything, just a blank page. Before I fixed the connection, it would show the generic "Cannot connect to database".