//alert('이 페이지는 모바일 브라우저에서 열람하실 수 없습니다.\\n불편하시더라도 PC 브라우저에서 확인 부탁 드리겠습니다.\\n감사합니다.'); //history.back(); "; //exit(); // 페이지 로드를 중단 } // 페이지의 나머지 콘텐츠 ?> location.href = '/robby/'; "; } $idx = base64_decode($_REQUEST['idx']); if ($idx === false) { throw new Exception("잘못된 idx 값입니다."); } // 데이터베이스 연결 $mysqli = getConnection(); // consult_reservation 테이블에서 idx가 일치하는 행을 조회 $query = "SELECT * FROM consult_reservation WHERE idx = ?"; $stmt = $mysqli->prepare($query); $stmt->bind_param("i", $idx); $stmt->execute(); $result = $stmt->get_result(); $consultData = $result->fetch_assoc(); $stmt->close(); // 결과가 없을 경우 오류 처리 if (!$consultData) { throw new Exception("해당 idx에 대한 데이터가 존재하지 않습니다."); } // consult_reservation에서 가져온 company_tax_id 값을 변수에 저장 $company_tax_id = $consultData['company_tax_id']; // client_profile 테이블에서 tax_id가 일치하는 행을 조회 $query = "SELECT * FROM client_profile WHERE tax_id = ?"; $stmt = $mysqli->prepare($query); $stmt->bind_param("s", $company_tax_id); $stmt->execute(); $result = $stmt->get_result(); $profileData = $result->fetch_assoc(); $stmt->close(); $mysqli->close(); // idx, tax_id, mod_dt, reg_dt 제외한 consult_reservation 데이터 필터링 $excludedColumns = ['idx', 'consult_question_json', 'mod_dt', 'reg_dt']; $consultFilteredData = array_filter($consultData, function($key) use ($excludedColumns) { return !in_array($key, $excludedColumns); }, ARRAY_FILTER_USE_KEY); // idx, tax_id, mod_dt, reg_dt 제외한 client_profile 데이터 필터링 $excludedColumnsProfile = ['idx', 'tax_id', 'mod_dt', 'reg_dt']; $profileFilteredData = array_filter($profileData, function($key) use ($excludedColumnsProfile) { return !in_array($key, $excludedColumnsProfile); }, ARRAY_FILTER_USE_KEY); // JavaScript에 사용할 JSON 데이터로 변환하여 출력 echo ""; } catch (Exception $e) { echo ""; exit; } ?>
소속 단체나 기관 및 기업 정보를 입력해주세요.