Add: sql - login, history_record

This commit is contained in:
2018-05-17 18:51:09 +09:00
parent 976e5563b7
commit 235327cd3e
19 changed files with 529 additions and 91 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);
?>