-
Notifications
You must be signed in to change notification settings - Fork 0
/
remove.php
29 lines (25 loc) · 755 Bytes
/
remove.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!-- remove follower form handler -->
<!DOCTYPE html>
<html lang="en">
<head>
<link href="fotoapp.css" rel="stylesheet">
<?php
require('db.php');
?>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Remove follower form handler</title>
</head>
<body>
<?php
session_start();
//the removed person
$other = $_GET['name'];
$sql = "DELETE FROM `followers` WHERE `User` like '".$other."' and `Following` like '".$_SESSION['username']."'";
$result = $conn->query($sql);
header("Location: ./otherspage.php?name=$other");
exit();
?>
</body>
</html>