-
Notifications
You must be signed in to change notification settings - Fork 0
/
following.php
49 lines (39 loc) · 1.22 KB
/
following.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php require_once "includes/dashboard-header.php"; ?>
<?php
if(isset($_SESSION['id'])){
$id = $_SESSION['id'];
}
?>
<body>
<section class="follow-wrapper">
<header class="d-flex-sb">
<a href="javascript:history.back()"><i class="bi bi-arrow-left"></i></a>
<h3><?= $_SESSION['lastname']; ?></h3>
<a href="#"><i class="bi bi-person-plus"></i></a>
</header>
<nav class="d-flex-sa">
<a href="followers.php">Friends Request</a>
<a href="#" class="active" style="background-color: transparent;">Sent Request</a>
</nav>
<?php require "includes/footer-nav-no.php"; ?>
<div class="followers">
</div>
</section>
<?php require_once "includes/dashboard-footer.php"; ?>
<script>
$(document).ready(function(){
fetch_user();
setInterval(function(){
fetch_user();
}, 5000);
function fetch_user(){
$.ajax({
url:"backend/fetch-following.php",
method: "POST",
success: function(data){
$(".followers").html(data);
}
});
}
});
</script>