Hi friend, obviously there is an error,
See it and if it resolved your problem do mark it as solved :)
Here's the issue,
Your MYSQL query is
$mont="UPDATE $month SET $dob='$p' where roll='$var'";
?>
And the error is $month and $dob ... My friend, you have to use the field name in the table in your database. Also, the table name can be month and not $month. It is possible that the table field name is dob so...
If field name is dob and table name is month, the correction is
$mont="UPDATE month SET dob='$p' where roll='$var'";
?>
One more point to make though is, you should always place session_start() the very first line of code even before any include.
I am sure it will solve your problem. Do mark it :) Thank you.
With Regards
Tushar Srivastava