?> ' + $(obj).attr('data-id'); } } </script> <?php require_once './database/Database.php'; $db = new Database(); /* * Process delete query **/ if (isset($_GET['del'])) { $deleteQuery = "DELETE FROM `message` WHERE `message_id` = {$_GET['del']}"; if ($db->queryDeleteDb($deleteQuery)) { echo '<div class="alert alert-success" role="alert">Picture has been <strong>successfully</strong> deleted</div>'; } else { echo '<div class="alert alert-danger" role="alert">Something went wrong!!! Thats all we know</div>'; } } ?> <div class="table-responsive"> <table class="table table-striped table-hover"> <thead> <tr> <th style="width: 100px">Picture</th> <th>Description</th> <th>Sending Time</th> <th>Status</th>