zzz
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
<div class="nav-wrapper container">
|
||||
<div style="text-align:center;display:inline-block;padding:5px 0;width:100%;float:left;">本次答题结束<span name="remtime">
|
||||
<?php
|
||||
$con=mysqli_connect("172.27.16.2:3306","buptStudent","root","lxo329123456");
|
||||
$con=mysqli_connect("172.27.16.2:3306","root","lxo329123456","buptStudent");
|
||||
if (!$con){echo 'Could not connect:' . mysql_error();};
|
||||
$result2 = mysqli_fetch_array(mysqli_query($con,"SELECT * FROM UserAnswer WHERE Student_ID = '$_SESSION[Student_ID]'"));
|
||||
if($result2[score]) echo "得分为: ".$result2[score]." ";
|
||||
@@ -80,7 +80,7 @@
|
||||
<div class="row">
|
||||
<?php
|
||||
//link to mysql
|
||||
$con=mysqli_connect("172.27.16.2:3306","buptStudent","root","lxo329123456");
|
||||
$con=mysqli_connect("172.27.16.2:3306","root","lxo329123456","buptStudent");
|
||||
if (!$con){echo 'Could not connect:' . mysql_error();};
|
||||
//mysql_select_db("my_db_test", $con);
|
||||
$p = 20;
|
||||
|
||||
Reference in New Issue
Block a user