This commit is contained in:
2018-06-05 19:47:45 +08:00
parent d852d65185
commit af8091160c

View File

@@ -48,14 +48,14 @@
<div class="PageHeader"> <div class="PageHeader">
<nav role="navigation" style="height:60px;"> <nav role="navigation" style="height:60px;">
<div class="nav-wrapper container"> <div class="nav-wrapper container">
<div style="text-align:center;display:inline-block;padding:5px 0;width:100%;float:left;">本次答题结束&nbsp;&nbsp;&nbsp;&nbsp;感谢你的参加&nbsp;&nbsp;<span name="remtime"> <div style="text-align:center;display:inline-block;padding:5px 0;width:100%;float:left;">本次答题结束<span name="remtime">
<?php <?php
$con=mysqli_connect("localhost","buptStudent","buptStudentlx","buptStudentdb"); $con=mysqli_connect("localhost","buptStudent","buptStudentlx","buptStudentdb");
if (!$con){echo 'Could not connect:' . mysql_error();}; if (!$con){echo 'Could not connect:' . mysql_error();};
$result2 = mysqli_fetch_array(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]." "; if($result2[score]) echo "得分: ".$result2[score]." ";
mysqli_close($con); mysqli_close($con);
?> ?>
谢谢</span></div> 谢谢</span></div>
</div> </div>
</nav> </nav>