<?php
session_start();
include "config.php";
$client_id = $_GET['id'];
$sql = "DELETE FROM client_page WHERE id = '$client_id'";
 if(mysqli_query($conn, $sql)){

    $_SESSION['status'] = "Data Delete Successfully";
    $_SESSION['status_code'] = "success";
    header("location:{$hostname}/admin/client_page.php");
    // echo "Success";
    }else{
      // echo "<p style='color:red;text-align:center;margin:10px 0px;'>Can't Delete the User Record.</p>";
      $_SESSION['status'] = "Can't Delete the User Record.";
      $_SESSION['status_code'] = "error";
      header("location:{$hostname}/admin/client_page.php");
      }
    mysqli_close($conn);
  ?>