-
Notifications
You must be signed in to change notification settings - Fork 0
/
profiles.php
94 lines (82 loc) · 2.51 KB
/
profiles.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php include 'db.php';
include 'header.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Serivice Provider Profile</title>
<style type="text/css">
.img-align{
margin-left: auto;
margin-right: auto;
width: 20%;
display: block;
}
.s-name{
color: #2980b9;
}
.profile-content{
text-align: center;
border-style: double;
width: 30%;
margin-left: auto;
margin-right: auto;
display: block;
margin-bottom: 20px;
}
.profile-content-2{
text-align: left;
margin-right: auto;
margin-left: auto;
display: block;
padding-left: 20%;
}
</style>
</head>
<body>
<?php
if ($_GET['email']) {
$emailid = $_GET['email'];
$sql = "SELECT * FROM service_provider WHERE email='".$emailid."'";
$reslt = mysqli_query($conn, $sql);
if ($reslt) {
if (mysqli_num_rows($reslt)>0) {
while ($row = $reslt->fetch_assoc()){
$sid = $row["id"];
$fname = $row["first_name"];
$lname = $row["last_name"];
$district = $row["district"];
$profile = $row["imageurl"];
$service = $row["service_provider"];
$email = $row["email"];
?>
<div style="">
<div>
<button>Messages</button>
</div>
<h1 style="text-align: center;">Welcome <span class="s-name"><?php echo $fname." ".$lname; ?>...</span></h1>
<img class="img-align" src="profilepic/<?=$profile?>" alt="profile pic"/>
<div class="profile-content">
<h3>Your Service</h3>
<hr>
<div class="profile-content-2">
<p>First Name : <?php echo$fname; ?></p>
<p>Last Name : <?php echo $lname; ?></p>
<p>Full Name : <?php echo $fname." ".$lname; ?></p>
<p>Service : <?php echo $service; ?></p>
<p>Email : <?php echo $email; ?></p>
</div>
</div>
</div>
<?php
}
}
}
}else {
echo "passed email is not passed.";
}
?>
</body>
</html>
<?php include 'footer.php'; ?>