-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathList_all.php
More file actions
40 lines (32 loc) · 1015 Bytes
/
List_all.php
File metadata and controls
40 lines (32 loc) · 1015 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
37
38
39
40
<html lang="en-us">
<head>
<title>Password Manager</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="project.css">
</head>
<body>
<div class="welcome">
WELCOME TO PASSWORD MANAGER</div>
<?php
include('session.php');
$query="select * from details where username='$login_session' ";
$result=mysqli_query($conn,$query);
$count=0;
echo "<table>";
echo "<tr>";
echo "<th>Sr.no.</th><th>Domain</th><th>Username</th><th>Password</th>";
echo "</tr>";
if (mysqli_num_rows($result)>0){
while ($row=mysqli_fetch_assoc($result)) {
$count+=1;
echo "<tr><td>$count</td><td>". $row["domain"]."</td><td>". $row['username1']."</td><td> ". $row['password']."</td></tr> <br> ";
}
}else{
echo "0 result";
}
echo "</table>";
?>
<a href = "welcome.php">Main Menu</a><br>
<a href = "logout.php">Sign Out</a>
</body>
</html>