Delete Records on the basis of Employee ID

Published November 17, 2017 by Anil Kumar Vishwakarma

<?php
include(“db.php”);
$id = $_REQUEST[‘id’];
$delete = “DELETE FROM employees where id=$id”;
if(mysqli_query($sql, $delete)){
echo “Record Deleted”;
}else{
echo “Getting error”;
}
?>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: