}
$lev=($frequency*100)/$num;
$sql="update $tb set num='$num',frequency='$frequency',level='$lev' where subject_id='$sid_test'";
$db_query=mysql_db_query($db,$sql);
mysql_close();
include("host_score.php");
$sql="select * from $tb where user_name='$your_name'";
$db_query=mysql_db_query($db,$sql);
mysql_query("INSERT INTO $tb (user_name,subject,date,full_score,your_score)
values('$your_name','$subject','$date_test','$full_point','$your_point')")or die ("add ลงฐานข้อมูลไม่ได้ ");
}
header("Location:test.php");
?>
<script>window.location="test.php"</script>