타자 시험 최근 7번 기록 검색 query문 수정

This commit is contained in:
jisangs committed 2026-09-15 20:37:52 +09:00
1 parent 99631c1061
commit e87e38dbac
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -169,12 +169,11 @@ class TypingExamCollection extends DBMethodContainer
FROM typing_exam_record
WHERE MaestroID = ? AND PlayerID = ? AND WritingID = ?
AND RecordDateTime < DATE(?) + INTERVAL 1 DAY
AND RecordDateTime >= DATE(?) - INTERVAL 7 DAY
GROUP BY DATE(RecordDateTime)
ORDER BY RecordDateTime DESC
LIMIT 7";
$stmt = $this->mysqli->prepare($query);
$stmt->bind_param('iisss', $maestroID, $playerID, $writingID, $date, $date);
$stmt->bind_param('iiis', $maestroID, $playerID, $writingID, $date);
$stmt->execute();
$stmt->bind_result($date, $highestRecord);