-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprofile.php
58 lines (52 loc) · 1.78 KB
/
profile.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
<?php
session_start();
error_reporting(E_ERROR | E_WARNING | E_PARSE);
if(isset($_SESSION['uid'])){
include_once('dbclass.php');
$db=new db;
$res=$db->getUserData();
$row=mysqli_fetch_array($res,MYSQLI_ASSOC);
}
else{
header("location:login.php");
exit;
}
?>
<?php
$id=$_SESSION['uid'];
$u_name=$row['u_name'];
$name=$row['name'];
$phone=$row['phone'];
$email=$row['email'];
$radio=$row['radio'];
?>
<?php include_once('header.php'); ?>
<!-- Hero section -->
<section class="hero-section">
<div class="hero-slider owl-carousel">
<div class="hs-item set-bg" data-setbg="img/profile.jpg">
<div class="container">
<div class="row">
<div class="col-xl-6 col-lg-7 text-white">
<span><h6>Username</h6></span>
<h3><?php echo $u_name ?></h3>
<br>
<span><h6>Name</h6></span>
<h3><?php echo $name ?></h3>
<br>
<span><h6>Email Id</h6></span>
<h3><?php echo $email ?></h3>
<br>
<span><h6>Phone Number</h6></span>
<h3><?php echo $phone ?></h3>
<br>
<span><h6>Person's Role</h6></span>
<h3><?php echo $radio ?></h3>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Hero section end -->
<?php include_once('footer.php'); ?>