-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.php
More file actions
34 lines (33 loc) · 786 Bytes
/
common.php
File metadata and controls
34 lines (33 loc) · 786 Bytes
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
<?php
session_start();
include('php/db.php');
include('php/class.php');
if(!isset($_SESSION['id']))
{
header("Location: index.php");
}
else{
$user_id = $_SESSION['id'];
}
if(isset($_GET['other_id'])){
$other_id = $_GET['other_id'];
}
else{
header("Location: index.php");
}
?>
<div class="container-fluid">
<?php
$array_people_you_may_know = $q->return_mutual_ids($user_id,$other_id);
if(!empty($array_people_you_may_know)){
foreach($array_people_you_may_know as $key => $value){
?>
<div class="well"> <?php $q->show_glance($value); $q->no_of_mutual_frineds($user_id,$value); ?></div>
<?php
}
}
else{
echo '<div class="well">Try to make friends first';
}
?>
</div>