<?php
// File: admin/hapus_faq.php
session_start();
if (!isset($_SESSION['admin'])) {
  header("Location: login.php");
  exit;
}

include '../config/koneksi.php';

$id = intval($_GET['id']);
mysqli_query($conn, "DELETE FROM faq WHERE id = $id");

header("Location: faq.php");
exit;