-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmembers.php
49 lines (46 loc) · 1.49 KB
/
members.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
<!DOCTYPE html>
<?php
session_start();
include("includes/header.php");
if(!isset($_SESSION['user_email'])){
header("location: main.php");
}
?>
<html>
<head>
<title>Find People</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="style/home_style2.css">
</head>
<body>
<div class="row">
<div class="col-sm-12">
<center><h2>Find New Friends</h2></center><br><br>
<div class="row">
<div class="col-sm-4">
</div>
<div class="col-sm-4">
<form class="search_form" action="members.php" method="post">
<input type="text" placeholder="Search Friend" name="search_user">
<button class="btn btn-info" type="submit" name="search_user_btn"> Search</button>
</form>
</div>
<div class="col-sm-4">
</div>
</div> <br><br>
<?php
////passing variables in the functions
$email = $_SESSION['user_email'];
$get_user = "select * from Usertable where email='$email'"; // Running query by emailid
$run_user = mysqli_query($con,$get_user);
$row = mysqli_fetch_array($run_user);
$user_id = $row['user_id'];
search_user($user_id); ?>
</div>
</div>
</body>
</html>