-
Notifications
You must be signed in to change notification settings - Fork 52
/
user_found.php
47 lines (47 loc) · 1.01 KB
/
user_found.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
<!DOCTYPE html>
<html>
<head>
<title>User Found</title>
</head>
<style>
div {
width: 40%;
height: 100%;
text-align: center;
position: relative;
margin-right: 30%;
margin-left: 30%;
vertical-align: middle;
font-size: 30px;
border: 4px solid #009999;
padding-top: 30px;
padding-bottom: 30px;
border-radius: 20px;
}
body {
background-color: #d9d9d9;
background-position: right top;
background-attachment: fixed;
background-size: cover;
}
</style>
<body>
<div style="background-color: #f2f2f2;">
<?php
$conn = new mysqli("localhost","root","", "iwp");
if($conn->connect_error)
{
die("Connection failed: ".$conn->connect_error);
}
$sql = "SELECT * from temp";
$result=mysqli_query($conn,$sql);
$row=mysqli_fetch_row($result);
$sql = "DELETE from temp";
mysqli_query($conn, $sql);
echo "Your password is: ".$row[0];
?>
<br><br>
<a href="user_login.php">Redirect to User Login</a>
</div>
</body>
</html>