prepare("DELETE FROM reports WHERE id=:report_id");
$query->bindParam(':report_id', $_GET['id']);
if($query->execute()) {
echo "
report deleted
";
} else {
echo "report failed to delete
";
}
redirect: header("Refresh: 2; URL=$_SERVER[HTTP_REFERER]");
footer: require_once(TEMPLATES_PATH . "/footer.php");
?>