My code shows the following error, I did not understand how to correct it:
you have an error in your sql syntax, check the manual corresponds to your mysql server version for the right syntax to use near ')'at line 1
$query="insert into subjective_result(marks,roll_no)values($marks,$roll)";
mysql_query($query)or die(mysql_error());