Add: app highest record
This commit is contained in:
@@ -101,10 +101,10 @@ function get_high_score_list($maestro_id, $player_id, $appList) {
|
||||
$app_id_list = $appList[$i]['AppID'];
|
||||
|
||||
$query = "
|
||||
SELECT MAX(BR.BestRecord)
|
||||
SELECT MAX(AHR.HighestRecord)
|
||||
FROM app AS A
|
||||
INNER JOIN best_record AS BR
|
||||
ON A.AppID = ? AND A.AppID = BR.AppID AND BR.MaestroID = ? AND BR.PlayerID = ?
|
||||
INNER JOIN app_highest_record AS AHR
|
||||
ON A.AppID = ? AND A.AppID = AHR.AppID AND AHR.MaestroID = ? AND AHR.PlayerID = ?
|
||||
ORDER BY A.AppID ASC";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param('iii', $app_id_list, $maestro_id, $player_id);
|
||||
|
||||
Reference in New Issue
Block a user