<?php 
include 'check.php';
include '../db.inc.php';
include 'check_msg.php';
$id=$_GET['id'];
@mysqli_query($connectionString,"DELETE FROM messages WHERE id='$id' LIMIT 1");
?>
<script>
alert('Message Successfully Deleted');
location.replace('viewmsg.php');
</script>
<?php
exit;
?>
