change to local mysql
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user