It would help to indicate which is line 32.
Having said that the line(s)
PHP Code:
$query = "insert into student values
('".$studid"', '".$fname"', '".$sname"', '".$projid"', '".$mail"')";
you need to use the string concatenation operator after the variables, hence:
PHP Code:
$query = "insert into student values
('".$studid."', '".$fname."', '".$sname."', '".$projid."', '".$mail."')";
Having said that string literals with double quotes will automatically expand simple variables so you can write it as:
PHP Code:
$query = "insert into student values('$studid', '$fname', '$sname', '$projid', '$mail')";