- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete.php
More file actions
Latest commit
13 lines (12 loc) · 368 Bytes
/
Copy pathdelete.php
File metadata and controls
13 lines (12 loc) · 368 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
include'db_connect.php';
$blogid=$_GET['blogid'];//here we will be receiving that blogid which will be deleted when we click the delete button
$deleteSql="DELETE FROM `bloglist` WHERE `Blog_id`='$blogid'";
$deleteRes=mysqli_query($conn,$deleteSql);
if($deleteRes){
header("location:index.html");
}
else{
echo"Delete operation can't be performed";
}
?>