diff --git a/README_EN.md b/README_EN.md index f15e1ac70..a056eb664 100644 --- a/README_EN.md +++ b/README_EN.md @@ -22,10 +22,42 @@ A web game: EatKano ## Features -A simple ranking list(day/week/month) is provided **not recommended**. +A simple ranking list(day/week/month) is provided. You can delete all the sql/php files if you don't need them. +## Required ++ MySQL 5+ ++ PHP 5+ + +## Usage + +Follow these few steps to configure the database for ranking list. + +1. Create your own database and execute the script provided(e.g. use `kano` as database name). + + ```sql + CREATE DATABASE kano DEFAULT CHARSET=utf8; + USE kano; + SOURCE kano.sql; + ``` + +2. Change the code in `conn.php`, which contains your database info, and its content is here. + + ```php + connect_error) { + die("Failed to connect: " . $conn->connect_error); + } + $ranking = "kano_rank"; + ``` + + + + ## Others Please star us~ diff --git a/conn.php b/conn.php index ae17d1484..1e2f3ec20 100644 --- a/conn.php +++ b/conn.php @@ -1,7 +1,8 @@ connect_error) { - die("连接失败: " . $conn->connect_error); + die("Failed to connect: " . $conn->connect_error); } -$ranking = "kano_rank";//排行榜表名 \ No newline at end of file +$ranking = "kano_rank"; \ No newline at end of file