diff --git a/src/web/server/maestro/delete_test_player_record.php b/src/web/server/maestro/delete_test_player_record.php index b226422..56510fd 100644 --- a/src/web/server/maestro/delete_test_player_record.php +++ b/src/web/server/maestro/delete_test_player_record.php @@ -13,7 +13,8 @@ if($maestro_test_player_id === null) { exit; } -delete_maestro_test_player_record($maestro_test_player_id); +delete_maestro_test_player_best_record($maestro_test_player_id); +delete_maestro_test_player_app_highest_record($maestro_test_player_id); $replyJSON["PlayerID"] = $maestro_test_player_id; $replyJSON["RESULT"] = "ok"; @@ -43,7 +44,7 @@ function get_maestro_test_player_id($maestro_id) { return $maestro_test_player_id; } -function delete_maestro_test_player_record($player_id) { +function delete_maestro_test_player_best_record($player_id) { global $db_conn; $query = " @@ -62,4 +63,23 @@ function delete_maestro_test_player_record($player_id) { $stmt->close(); } +function delete_maestro_test_player_app_highest_record($player_id) { + global $db_conn; + + $query = " + DELETE + FROM app_highest_record + WHERE PlayerID = ? + "; + $stmt = $db_conn->prepare($query); + $stmt->bind_param('i', $player_id); + $stmt->execute(); + // $stmt->bind_result($maestro_test_player_id); + // while($stmt->fetch()) { + // ; + // } + $stmt->fetch(); + $stmt->close(); +} + ?> \ No newline at end of file