Add: register_maestro

This commit is contained in:
jisangs committed 2018-07-10 10:21:37 +09:00
1 parent 9a8b8fc417
commit 7fe64c7a45
7 files changed
+931 -1

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
<?php
header('Content-Type: application/json');
$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->execute();
if($stmt->affected_rows <= 0) {
send_error_message($replyJSON, "마에스트로 계정 활성화 실패");
$db_conn->close();
exit;
}
$replyJSON["RESULT"] = "ok";
echo json_encode($replyJSON, JSON_UNESCAPED_UNICODE);
$db_conn->close();
?>