using PHP, we can delete the record from a database table in just 3 steps.
Firstly make a connection, write sql delete query and execute it.
<?php $conn = mysqli_connect("localhost", "root" , "", "student"); if($conn === false){ die("ERROR: Could not connect to database."); } $sql = "delete from book where Id=0"; $result = mysqli_query($conn, $sql); if($result==1) echo "Record Deleted"; else echo "error"; mysqli_close($conn); ?>