-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminaccountindex.php
More file actions
76 lines (60 loc) · 1.88 KB
/
Copy pathadminaccountindex.php
File metadata and controls
76 lines (60 loc) · 1.88 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
session_start();
$connection = mysqli_connect("localhost","root","","bankaccount");
$database = mysqli_select_db($connection,"bankaccount");
if(isset($_POST["submit"])){
$accountname = $_POST["accountname"];
$sql = "SELECT * FROM banktable WHERE account_name = '$accountname'";
$result=mysqli_query($connection,$sql);
$num_rows=mysqli_num_rows($result);
$row=mysqli_fetch_array($result);
$_SESSION["id"]=$row['id'];
if ($num_rows > 0)
{
?>
<script>
alert('Successfully Log In');
document.location='adminaccountedit.php';
</script>
<?php
}
}
?>
<!DOCTYPE html>
<html>
<head><title>admin search</title>
<meta name="viewport" content="width=device-width,scalable=no">
<style>
.form{
text-align: center;
}
.ad{
width: 30em;
height: 2em;
text-align: center;
margin-bottom: 2em;
}
@media all and (max-width: 580px){
.form{
font-size: 3em;
}
.ad{
width: 10em;
height: 1.4em;
font-size: 2em;
}
.but{
font-size: 2em;
}
}
</style>
</head>
<body>
<div class="form">
<form name="test" method="POST" action="adminaccountindex.php">
<p class="subscribe__copy">Approve users by searching each column name!!!</p>
<input type="text" class="ad" name="accountname" placeholder="Enter your tracking no here" />
<button type="submit" name="submit" value="submit" class="but">SEARCH</button>
</div></form>
</body>
</html>