finished it and fix the bug.
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<?php
|
||||
$con=mysqli_connect("localhost","buptStudent","buptStudentlx","buptStudentdb");
|
||||
if (!$con){echo 'Could not connect:' . mysql_error();};
|
||||
$result2 = mysqli_query($con,"SELECT * FROM UserAnswer WHERE Student_ID = '$_SESSION[Student_ID]'");
|
||||
$result2 = mysqli_fetch_array(mysqli_query($con,"SELECT * FROM UserAnswer WHERE Student_ID = '$_SESSION[Student_ID]'"));
|
||||
if($result2[score]) echo "你的最终得分是: ".$result2[score]." ";
|
||||
mysqli_close($con);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user