Add: update maestro info, password php
This commit is contained in:
@@ -15,6 +15,7 @@ if($info === null) {
|
||||
}
|
||||
|
||||
set_data("name", $info["name"]);
|
||||
set_data("email", $info["email"]);
|
||||
set_data("accountType", $info["accountType"]);
|
||||
set_data("playerCount", $info["playerCount"]);
|
||||
send_result_success();
|
||||
@@ -25,19 +26,20 @@ function get_maestro_info($maestroID) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "
|
||||
SELECT Name, AccountType, PlayerCount
|
||||
SELECT Name, Email, AccountType, PlayerCount
|
||||
FROM moty_maestro
|
||||
WHERE MaestroID = ?
|
||||
";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param("s", $maestroID);
|
||||
$stmt->execute();
|
||||
$stmt->bind_result($name, $accountType, $playerCount);
|
||||
$stmt->bind_result($name, $email, $accountType, $playerCount);
|
||||
// while($stmt->fetch())
|
||||
$stmt->fetch();
|
||||
$stmt->close();
|
||||
|
||||
$info["name"] = $name;
|
||||
$info["email"] = $email;
|
||||
$info["accountType"] = $accountType;
|
||||
$info["playerCount"] = $playerCount;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user