Fix: update result record to DB
This commit is contained in:
@@ -85,14 +85,14 @@ class TypingExamCollection extends DBMethodContainer
|
||||
$stmt->close();
|
||||
}
|
||||
|
||||
public function getThisHourRecord($maestroID, $playerID)
|
||||
public function getThisHourRecord($maestroID, $playerID, $writingID)
|
||||
{
|
||||
$query = "
|
||||
SELECT TypingExamRecordID, Record
|
||||
FROM typing_exam_record
|
||||
WHERE MaestroID = ? AND PlayerID = ? AND DATE(RecordDateTime) = DATE(NOW()) AND HOUR(RecordDateTime) = HOUR(NOW())";
|
||||
WHERE MaestroID = ? AND PlayerID = ? AND WritingID = ? AND DATE(RecordDateTime) = DATE(NOW()) AND HOUR(RecordDateTime) = HOUR(NOW())";
|
||||
$stmt = $this->mysqli->prepare($query);
|
||||
$stmt->bind_param("ii", $maestroID, $playerID);
|
||||
$stmt->bind_param("iii", $maestroID, $playerID, $writingID);
|
||||
$stmt->execute();
|
||||
$stmt->bind_result($typingExamRecordID, $record);
|
||||
|
||||
@@ -105,7 +105,7 @@ class TypingExamCollection extends DBMethodContainer
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function getHighestRecordForWriting($maestroID, $playerID, $writingID)
|
||||
public function getHighestRecord($maestroID, $playerID, $writingID)
|
||||
{
|
||||
$query = "
|
||||
SELECT TypingExamHighestRecordID, WritingID, HighestRecord
|
||||
|
||||
Reference in New Issue
Block a user