Add: ranking hour, day, month record php

This commit is contained in:
2018-05-18 09:52:58 +09:00
parent 8fe5c72987
commit 60bd151c92
18 changed files with 404 additions and 158 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
$hasServiceDBSetting = file_exists("./service_db_setting.php");
if($hasServiceDBSetting == true) {
include("./service_db_setting.php");
} else {
$db_host = "localhost";
$db_user = "afterschool";
$db_passwd = "sEobMPuJ2A8KTfwU";
$db_name = "jisangs";
}
$db_conn = new mysqli($db_host, $db_user, $db_passwd, $db_name);
if ($db_conn->connect_error) {
send_error_code("Connection failed: ".$db_conn->connect_error);
exit;
}
$query = "USE jisangs";
$result = mysqli_query($db_conn, $query);
?>