change to local mysql

This commit is contained in:
2018-07-14 22:16:53 +08:00
parent 40af937d4c
commit 3ef62ff028
3 changed files with 5 additions and 4 deletions

View File

@@ -118,7 +118,7 @@ if($_SESSION[Student_ID] != ""){
</div>
<?php
//link to mysql
$con=mysqli_connect("172.27.16.2:3306","root","lxo329123456","buptStudent");
$con=mysqli_connect("127.0.0.1:3306","buptStudent","buptStudentlx","buptStudentdb");
if (!$con){die('Could not connect:' . mysql_error());};
//mysql_select_db("my_db_test", $con);
$p = 20;
@@ -151,6 +151,7 @@ if($_SESSION[Student_ID] != ""){
}
if($flag == 0){
$i--;
sleep(0.5);
}
}