function dbassign_ok(call_idx) {
if (confirm("DB를 분배 하시겠습니까?")) {
$("#loding_img").show();
var sendUrl = 'process/ajax_dbassign.php';
var post_data = $("form[name=frm]").serialize() ;
$.ajax({
type: "POST",
url: sendUrl,
data: post_data,
dataType: 'json',
success: function(data) {
//성공
console.log(data);
//alert(data.landing_key)
},
error: function(request, status, error) {
//에러
//alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
alert('통신 오류');
},
complete: function() {
$("#loding_img").hide();
}
});
}
}
$rtn = array(
'landing_key' => $landing_key,
'counselor' => $counselor,
'result' => 'error',
'status' => false,
'message' => '로그인이 필요합니다.'
);
header("HTTP/1.0 404 Not Found");
echo json_encode($rtn);
'[ Web 관련 ] > php' 카테고리의 다른 글
php 배열의 정렬 - 1차원 배열, 다차원 배열 (0) | 2021.07.26 |
---|---|
php 크롤링 (simple_html_dom, Snoopy) (0) | 2021.07.22 |
php 파일 업로드 설정, php.ini 옵션 (0) | 2021.05.10 |
php 다른 확장자도 php 처럼 실행 되도록 하기 (확장자변경) (0) | 2021.04.24 |
php 랜덤 문자 만들기 (0) | 2021.04.22 |