prepare(" UPDATE kngil.qa_posts SET stat_bc = :status, mid_dt = NOW() WHERE post_id = :pid "); $stmt->execute([ ':status' => $status, ':pid' => $postId ]); // 상세 페이지로 복귀 header("Location: /kngil/bbs/qa_detail.php?id={$postId}"); exit; } catch (Exception $e) { exit('DB 오류: '.$e->getMessage()); }