ppeasy/public/deleteprotcat.php

16 lines
564 B
PHP

<?php include('include/headscript.php'); ?>
<?php
$idstandards=$_GET['idstandards'];
if (true) {
$DeleteQuery = new WA_MySQLi_Query($cmctrfdb);
$DeleteQuery->Action = "delete";
$DeleteQuery->Table = "stdprotectioncat";
$DeleteQuery->addFilter("idstdprotectioncat", "=", "i", "".($_GET['idstdprotectioncat']) ."");
$DeleteQuery->execute();
$DeleteGoTo = "edit-protcategory.php?idstandards=$idstandards";
if (function_exists("rel2abs")) $DeleteGoTo = $DeleteGoTo?rel2abs($DeleteGoTo,dirname(__FILE__)):"";
$DeleteQuery->redirect($DeleteGoTo);
}
?>