Hello web developers,,

i have manage to made a searchbox that displays the followng

LRN First Name Last Name Grade Section View Update Delete
2 Jane Doe 8 A View Update Delete
33 Jane Denice 7 C View Update Delete

Basically my problem is i just wanted that when we click the Delete link,, it will directly delete the students info in the database. How will i do that?? This has been my codes so far which needed your comments and correction.

PHP Code:
<?php
    session_start
();
    
$session_id $_SESSION['admin_id'];
    if(
$session_id == null){
       
header("location:Admin_Home.php");
       die();
    }
   include 
'Connect.php';
   
$id intval($_GET['id']);
   
$query = ("DELETE FROM student_information WHERE student_id = $id'");
   
$res mysql_query($query)or die (mysql_error() 
        echo 
"<script language='javascript' type='text/javascript'>alert('Successfully Deleted!')</script>";
        echo 
"<script language='javascript' type='text/javascript'>window.open('Admin_Home.php','_self')</script>";
?>
i would be glad if someone can correct my codes, Thank you!!!