Add: sql - login, history_record
This commit is contained in:
@@ -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);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user