fix: navigate page

This commit is contained in:
2018-07-02 21:15:36 +09:00
parent b2250b303a
commit 9951cf9a75
2 changed files with 57 additions and 20 deletions
@@ -27,10 +27,11 @@ function get_player_list_page($maestroID, $startNo, $endNo) {
SELECT UserID, Name, EnterCode FROM moty_user
WHERE MaestroID=?
ORDER BY UserID DESC
LIMIT ?, ?;
LIMIT ?, 10;
";
$stmt = $db_conn->prepare($query);
$stmt->bind_param('iii', $maestroID, $startNo, $endNo);
// $stmt->bind_param('iii', $maestroID, $startNo, $endNo);
$stmt->bind_param('ii', $maestroID, $startNo);
$stmt->execute();
$stmt->bind_result($userID, $name, $enterCode);