-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
51 lines (47 loc) · 1.5 KB
/
profile.php
File metadata and controls
51 lines (47 loc) · 1.5 KB
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
<?php
require_once "config.php";
include_once("header.php");
$user_id = $_SESSION['userID'];
$info = "SELECT * FROM user WHERE user_id='$user_id'";
$info_result = $link->query($info);
if ($info_result->num_rows > 0) {
$row = $info_result->fetch_assoc();
$email = $row["email"];
$address = $row["address"];
$phone = $row["phone"];
} else {
echo "0 results";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body{text-align: center; }
</style>
</head>
<body>
<h1 class="my-5">Hello, Welcome to Simple Click</h1>
<?php echo('
<div class="form-group row">
</div>
<div class="form-group row">
<label for="email" style="font-size: 1.2em" class="col-sm-2 col-form-label text-right">Email:</label>
<label for="email" style="font-size: 1.2em" class="col-sm-2 col-form-label text-center">' . $email . '</label>
</div>
<div class="form-group row">
<label for="Address" style="font-size: 1.2em" class="col-sm-2 col-form-label text-right">Address:</label>
<label for="Address" style="font-size: 1.2em" class="col-sm-2 col-form-label text-center">' . $address . '</label>
</div>
<div class="form-group row">
<label for="Phone Number" style="font-size: 1.2em" class="col-sm-2 col-form-label text-right">Phone Number:</label>
<label for="Phone Number" style="font-size: 1.2em" class="col-sm-2 col-form-label text-center">' . $phone . '</label>
</div>
')
?>
<p>
<br>
<a href="reset_password.php" class="btn btn-dark">Reset Your Password</a>
</p>
</body>
</html>