Fix: DB jisangs -> moty
This commit is contained in:
@@ -57,7 +57,7 @@ function has_player_name($maestroID, $playerName, $enterCode) {
|
||||
|
||||
$query = "
|
||||
SELECT PlayerID
|
||||
FROM moty_player
|
||||
FROM player
|
||||
WHERE MaestroID = ? AND Name = ? AND EnterCode = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
@@ -76,7 +76,7 @@ function get_maestro_account_type($maestroID) {
|
||||
|
||||
$query = "
|
||||
SELECT AccountType
|
||||
FROM moty_maestro
|
||||
FROM maestro
|
||||
WHERE MaestroID = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
@@ -95,7 +95,7 @@ function get_player_count($maestroID) {
|
||||
|
||||
$query = "
|
||||
SELECT PlayerCount
|
||||
FROM moty_maestro
|
||||
FROM maestro
|
||||
WHERE MaestroID = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
@@ -113,7 +113,7 @@ function add_player($maestroID, $playerName, $enterCode) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "
|
||||
INSERT INTO moty_player (MaestroID, Name, EnterCode)
|
||||
INSERT INTO player (MaestroID, Name, EnterCode)
|
||||
VALUES (?, ?, ?)
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
@@ -125,7 +125,7 @@ function increase_player_count($maestroID, $count) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "
|
||||
UPDATE moty_maestro
|
||||
UPDATE maestro
|
||||
SET PlayerCount = PlayerCount + ?
|
||||
WHERE MaestroID = ?
|
||||
";
|
||||
@@ -139,7 +139,7 @@ function count_registered_player($maestroID) {
|
||||
|
||||
$query = "
|
||||
SELECT COUNT(PlayerID)
|
||||
FROM moty_player
|
||||
FROM player
|
||||
WHERE MaestroID = ? AND AccountType = 0
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
@@ -157,7 +157,7 @@ function update_count_registered_player($maestroID, $countPlayer) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "
|
||||
UPDATE moty_maestro
|
||||
UPDATE maestro
|
||||
SET PlayerCount = ?
|
||||
WHERE MaestroID = ?
|
||||
";
|
||||
|
||||
Reference in New Issue
Block a user