<?php
//include ("includes/security.php");
include ("includes/database.php");
include ("includes/setting.php");

?>




<!DOCTYPE html>
<html>
<head>
	<title></title>
	<link rel="stylesheet" type="text/css" href="style3.css">


</head>
<body>

	<div id="nav1">
	<h1><a href="index.php">TakeAction!</a></h1>
	<ul>
		<li><a href="admin.php"> Admin </a></li>
		<li><a href="index.php"> Logout</a></li>
	</ul>
</div>

<div >
<br><br><h1 align="center"> HELLO ADMIN OF TAKE ACTION PORTAL </h1>
</div>




<?php

	if(isset($_GET['del'])){
		$id=$_GET['del'];
		$sql= "DELETE FROM tbl_complaint where complaint_id='$id'";
		$res= mysqli_query($newcon,$sql) or die ("Failed".mysqli_error($newcon)); 
		echo "<meta http-equiv='refresh' content='0;url=adminpage.php'>";
	}
	
?>







</body>
</html>