-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<?php | ||
$link = new mysqli('localhost','用户名','密码','数据库名'); | ||
// Change this to your own configuration | ||
$link = new mysqli('localhost','NAME','PASSWORD','kano'); | ||
mysqli_set_charset($link, 'utf8'); | ||
if ($link->connect_error) { | ||
die("连接失败: " . $conn->connect_error); | ||
die("Failed to connect: " . $conn->connect_error); | ||
} | ||
$ranking = "kano_rank";//排行榜表名 | ||
$ranking = "kano_rank"; |