<?php $student_name=$_POST[student_name]; $year_of_study=$_POST[year_of_study]; $email=$_POST[email]; $reg_no=$_POST[reg_no]; $password+=$_POST[password]; try{ $host="localhost"; $username="root"; $password="";