| Direktori : /var/www/vhosts/ccp.ac.th/smtp.ccp.ac.th/httpdocs/new/sp/admin/ |
| Current File : /var/www/vhosts/ccp.ac.th/smtp.ccp.ac.th/httpdocs/new/sp/admin/del_tp.php |
<?php
include '../db/database.php';
$id = $_GET['id'];
$sql = "DELETE FROM type_personnel WHERE typeID='$id'";
$result = mysqli_query($link, $sql);
if ($result) {
header("Location: type_personnel.php");
} else {
echo "<script language='javascript'>
alert('ไม่สามารถลบข้อมูลได้เนื้องจากข้อมูลนี้ถูกใช้งานอยู่'); location.href='type_personnel.php';
</script>";
}