Fix: DB jisangs -> moty
This commit is contained in:
@@ -37,7 +37,7 @@ function deletePlayer($maestroID, $playerID) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "
|
||||
DELETE FROM moty_best_record
|
||||
DELETE FROM best_record
|
||||
WHERE MaestroID = ? AND PlayerID = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
@@ -50,7 +50,7 @@ function deletePlayer($maestroID, $playerID) {
|
||||
// }
|
||||
|
||||
$query = "
|
||||
DELETE FROM moty_player
|
||||
DELETE FROM player
|
||||
WHERE MaestroID = ? AND PlayerID = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
@@ -68,7 +68,7 @@ function countPlayerID($maestroID, $playerID) {
|
||||
|
||||
$query = "
|
||||
SELECT COUNT(PlayerID)
|
||||
FROM moty_player
|
||||
FROM player
|
||||
WHERE MaestroID = ? AND PlayerID = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
@@ -87,7 +87,7 @@ function countPlayerRecord($maestroID, $playerID) {
|
||||
|
||||
$query = "
|
||||
SELECT COUNT(PlayerID)
|
||||
FROM moty_best_record
|
||||
FROM best_record
|
||||
WHERE MaestroID = ? AND PlayerID = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
@@ -105,7 +105,7 @@ function decrease_player_count($maestroID, $count) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "
|
||||
UPDATE moty_maestro
|
||||
UPDATE maestro
|
||||
SET PlayerCount = PlayerCount - ?
|
||||
WHERE MaestroID = ?
|
||||
";
|
||||
@@ -119,7 +119,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);
|
||||
@@ -137,7 +137,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