This is a delete query but I want to show the deleted data in the database. Please help me.
<?php
require_once '../students.php';
$admin_query = $mysqli->query("SELECT * FROM `students`") or die(mysqli_error());
$admin_valid = $admin_query->num_rows;
if($admin_valid == 1){
echo '<script>alert("Error: Can\'t delete if only one applicant is available")</script>';
echo '<script>window.location = "student_acc.php"</script>';
}else{
$mysqli->query("DELETE FROM `students` WHERE `students`.`student_id` = '$_REQUEST[student_id]'") or
die(mysqli_error());
header('location:student_acc.php');
}
?>