Fix: add player css, error_message css
This commit is contained in:
@@ -22,7 +22,7 @@ exit;
|
||||
function getPlayerCount($maestroID, $playerName) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "SELECT COUNT(PlayerID) FROM moty_player WHERE MaestroID = ? AND Name = ?";
|
||||
$query = "SELECT COUNT(PlayerID) FROM moty_player WHERE MaestroID = ? AND Name LIKE CONCAT('%', ?, '%')";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param("is", $maestroID, $playerName);
|
||||
$stmt->execute();
|
||||
|
||||
@@ -27,7 +27,7 @@ function get_player_list_page($maestroID, $playerName, $startNo, $endNo) {
|
||||
|
||||
$query = "
|
||||
SELECT PlayerID, Name, EnterCode FROM moty_player
|
||||
WHERE MaestroID=? AND Name=?
|
||||
WHERE MaestroID = ? AND Name LIKE CONCAT('%', ?, '%')
|
||||
ORDER BY PlayerID DESC
|
||||
LIMIT ?, 10;
|
||||
";
|
||||
|
||||
Reference in New Issue
Block a user