$sql2 = "select * from hisstdmis as h inner join fault as f on h.FAL_ID = f.FAL_ID where STD_ID='$std_id'";
$result2 = mysql_query($sql2);
$fetcharr2 = mysql_fetch_array($result2);
$point2 = $fetcharr2['Point'];
$sql3 = "select * from student as s inner join hisstdmis as h on s.STD_ID = h.STD_ID where s.STD_ID='$std_id'";
$result3 = mysql_query($sql3);
$fetcharr3 = mysql_fetch_array($result3);
$point3 = $fetcharr3['Point'];
$point = $point3-$point2;
$sql = "UPDATE student Set Point = '$point' WHERE STD_ID='$std_id' ";
}