$sql='UPDATE Reg_Stud SET Result=$perc WHERE RegID="$_SESSION['id']"';
Whts wrong with this syntax
$sql='UPDATE Reg_Stud SET Result=$perc WHERE RegID="$_SESSION['id']"';
Whts wrong with this syntax
Two problems:
You can do:
$sql='UPDATE Reg_Stud SET Result='.$perc.' WHERE RegID='.$_SESSION['id'];