function updateMatchScores($matchId, $matchPointsTeam1, $matchPointsTeam2, $mapPointsTeam1, $mapPointsTeam2) { $this->db->query('UPDATE Matches SET matchPointsTeam1 = %d, matchPointsTeam2 = %d, ' . 'mapPointsTeam1 = %d, mapPointsTeam2 = %d WHERE id = %d', $matchPointsTeam1, $matchPointsTeam2, $mapPointsTeam1, $mapPointsTeam2, $matchId); }