Add: moty_player - AccountType 0:player, 1:maestro
This commit is contained in:
@@ -25,7 +25,11 @@ exit;
|
||||
function get_maestro_test_player_id($maestro_id) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "SELECT MaestroTestID FROM moty_maestro WHERE MaestroID=?";
|
||||
$query = "
|
||||
SELECT MaestroTestID
|
||||
FROM moty_maestro
|
||||
WHERE MaestroID = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param('i', $maestro_id);
|
||||
$stmt->execute();
|
||||
@@ -42,7 +46,11 @@ function get_maestro_test_player_id($maestro_id) {
|
||||
function delete_maestro_test_player_record($player_id) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "DELETE FROM moty_best_record WHERE PlayerID=?;";
|
||||
$query = "
|
||||
DELETE
|
||||
FROM moty_best_record
|
||||
WHERE PlayerID = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param('i', $player_id);
|
||||
$stmt->execute();
|
||||
|
||||
@@ -26,7 +26,11 @@ exit;
|
||||
function get_maestro_test_player_id($maestro_id) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "SELECT MaestroTestID FROM moty_maestro WHERE MaestroID=?";
|
||||
$query = "
|
||||
SELECT MaestroTestID
|
||||
FROM moty_maestro
|
||||
WHERE MaestroID = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param("i", $maestro_id);
|
||||
$stmt->execute();
|
||||
|
||||
Reference in New Issue
Block a user