-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
47 lines (43 loc) · 2.12 KB
/
header.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
<!-- ======= Header ======= -->
<header id="header" class="fixed-top d-flex align-items-center header-transparent">
<div class="container d-flex justify-content-between align-items-center">
<div class="logo">
<!-- <h1 class="text-light"><a href="index.html"><span>Thant</span></a></h1> -->
<!-- Uncomment below if you prefer to use an image logo -->
<a href="index.php"><img src="./assets/logo.png" alt="" class="img-fluid"></a>
</div>
<nav id="navbar" class="navbar">
<ul>
<li><a class="active " href="index.php">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="services.html">Medical Service</a></li>
<li><a href="portfolio.html">Doctor Lists</a></li>
<li><a href="contactus.php">Contact Us</a></li>
<li class="dropdown"><a href="#"><span>
<?php
if(!empty($_SESSION["user"])){
$profile = $_SESSION["user"]; // email
$query = "SELECT * FROM patients WHERE Pemail='$profile'";
$go_query = mysqli_query($connection, $query);
while($out = mysqli_fetch_array($go_query)){
$db_name = $out['Pname'];
$db_pid = $out['PatientID'];
$db_profile = $out['Pprofile_img'];
echo "<img src='photo/{$db_profile}' alt='profile_img' style='border-radius:50%' width=30px height=30px>";
}
}
?>
<!-- Profile -->
</span>
<!-- <i class="bi bi-chevron-down"></i> -->
</a>
<ul>
<li><a href="setting.php">Setting</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</li>
</ul>
<i class="bi bi-list mobile-nav-toggle"></i>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->