-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser_details.php
More file actions
36 lines (29 loc) · 1002 Bytes
/
user_details.php
File metadata and controls
36 lines (29 loc) · 1002 Bytes
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
<html>
<head>
<title>Details</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div class="container">
<header>
<h1>All Details</h1>
</header>
<?php
$id = $_GET['user_id'];
$mysqli = mysqli_connect('localhost','root','','programming');
$query = mysqli_query($mysqli,"SELECT * FROM users WHERE id='$id' LIMIT 1,1");
$user=mysqli_fetch_assoc($query);
?>
<div class="form">
<p>ID : <?php echo($user['User_id']) ?></p>
<p>Name: <?php echo($user['name']) ?></p>
<p>Email: <?php echo($user['email']) ?></p>
<p>Username: <?php echo($user['username']) ?></p>
<p>Password: <?php echo ($user['password']) ?></p>
<form action="user_management_admin.php">
<input type="submit" value="Back" />
</form>
</div>
</div>
</body>
</html>