<?php
	include("config.php");
	$id=mysqli_real_escape_string($mysqli,$_GET["id"]);
	
	$sql="DELETE FROM kontak WHERE id='$id'";
	
	$qry=mysqli_query($mysqli,$sql);
	
	if($qry){
	
		msgbox("Pesan berhasil dihapus");
		lempar("admin.php?page=ls_kontak&page_desc=Kelola Kontak Kami");
	}else{
		
		msgbox("Error: ".mysqli_error($mysqli));
		lempar("admin.php?page=ls_kontak&page_desc=Kelola Kontak Kami");
	}
	
	
	
?>