Fix: add_maestro - fill the columns for not null
This commit is contained in:
@@ -66,8 +66,8 @@ function add_maestro($maestro_name, $password, $email, $account_type) {
|
||||
global $db_conn;
|
||||
|
||||
$query = "
|
||||
INSERT INTO maestro (Name, Password, Email, AccountType, ActivateStatus, PlayerCount, AcceptClausesDateTime, MaestroTestID)
|
||||
VALUES (?, PASSWORD(?), ?, ?, 0, 0, NOW(), -1)";
|
||||
INSERT INTO maestro (Name, Password, Email, AccountType, ActivateStatus, AvailableActivateDateTime, PlayerCount, AcceptClausesDateTime, AllowEditEnterCode, MaestroTestID)
|
||||
VALUES (?, PASSWORD(?), ?, ?, 0, '0000-00-00 00:00:00', 0, NOW(), 0, 0)";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param("sssi", $maestro_name, $password, $email, $account_type);
|
||||
$stmt->execute();
|
||||
|
||||
Reference in New Issue
Block a user