Fix: revised php code to admin
This commit is contained in:
1 parent
b5b56e8c2d
commit
070b870044
8 files changed
+77
-687
No files matched your search
@@ -1,23 +1,24 @@
|
||||
<?php
|
||||
header('Content-Type: application/json');
|
||||
header("Content-Type: application/json");
|
||||
|
||||
include "./../lib/send_reply_json.php";
|
||||
include "./../setup/connect_db.php";
|
||||
|
||||
$maestro_id = $_POST["maestro_id"];
|
||||
|
||||
include "./../setup/connect_db.php";
|
||||
|
||||
$query = "UPDATE moty_maestro SET ActivateStatus=1 WHERE MaestroID=?";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param('i', $maestro_id);
|
||||
$stmt->bind_param("i", $maestro_id);
|
||||
$stmt->execute();
|
||||
|
||||
if($stmt->affected_rows <= 0) {
|
||||
send_error_message($replyJSON, "마에스트로 계정 활성화 실패");
|
||||
$db_conn->close();
|
||||
set_error_message("마에스트로 계정 활성화 실패");
|
||||
send_result_fail();
|
||||
exit;
|
||||
}
|
||||
|
||||
$replyJSON["RESULT"] = "ok";
|
||||
echo json_encode($replyJSON, JSON_UNESCAPED_UNICODE);
|
||||
$db_conn->close();
|
||||
send_result_success();
|
||||
exit;
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user