Fix: DB jisangs -> moty
This commit is contained in:
@@ -46,7 +46,7 @@ function has_maestro_name($maestroName) {
|
||||
|
||||
$query = "
|
||||
SELECT MaestroID
|
||||
FROM moty_maestro
|
||||
FROM maestro
|
||||
WHERE Name = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
@@ -64,7 +64,7 @@ function add_maestro($maestro_name, $password, $email, $account_type) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "
|
||||
INSERT INTO moty_maestro (Name, Password, Email, AccountType, ActivateStatus, PlayerCount, AcceptClausesDateTime, MaestroTestID)
|
||||
INSERT INTO maestro (Name, Password, Email, AccountType, ActivateStatus, PlayerCount, AcceptClausesDateTime, MaestroTestID)
|
||||
VALUES (?, PASSWORD(?), ?, ?, 0, 0, NOW(), -1)";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param("sssi", $maestro_name, $password, $email, $account_type);
|
||||
|
||||
Reference in New Issue
Block a user