<?php //Database connection in php $host='localhost'; $username='root'; $password=''; $dbname='myprojectdb'; $conn=mysqli_connect($host,$username,$password,$dbname); //Delete query in php $sql="DELETE FROM `member` WHERE `id`='".trim($_REQUEST['id'])."'"; $res=mysqli_query($conn,$sql); ?>