-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcheakStatus2.php
More file actions
154 lines (123 loc) · 3.22 KB
/
cheakStatus2.php
File metadata and controls
154 lines (123 loc) · 3.22 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<html>
<head>
<title> </title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="files/css/reset.css">
<link href="files/css/font-awesome.min.css" rel="stylesheet">
<link href="files/css/bootstrap.css" rel="stylesheet" />
<link rel="stylesheet" href="files/animate/animate.css" />
<link rel="stylesheet" href="files/animate/set.css" />
<link href='files/fonts/sans.css' rel='stylesheet' type='text/css'>
<style>
#backs{
background-image:url("images/cheakStatus.jpg");
background-size: cover;
}
#lines{
margin-top: 0px;
width:100%;
}
#bank-name{
width: 550px;
}
#bank-name img{
width: 200px;
margin-top:0px;
}
.nav-div{
width:100%;
height:70px;
background:white;
}
.nav-div ul{
position:absolute;
list-style: none;
}
.nav-div li{
float:left;
display: inline-block;;
}
.nav-div a{
font: Roboto,Arial,Helvetica;
margin-top:15px;
text-decoration: none;
width:150px;
color: black;
display: block;
padding: 10px;
text-align: center;
}
.nav-div a:hover{
color: #12DAD1;
text-decoration: none;
}
.nav-div a:active{
color: #12DAD1;
}
@font-face {
font-family: myFirstFont;
src: url(files/css/Redressed.ttf);
font-weight: bold;
}
#area{
font-family: myFirstFont;
font-size: 70px;
text-align: center;
}
</style>
</head>
<body id="backs">
<div id="lines-div">
<img id="lines" src="images/lines1.png">
</div>
<div class="nav-div">
<ul>
<li id="bank-name"><img src="images/logo2.png"> </li>
<li><a href="1.php">Home</a></li>
<li><a href="bank.html">Bank</a></li>
<li><a href="1.php#about">Services</a></li>
<li><a href="1.php#customer">Customer Care</a></li>
<li><a href="1.php#map">Locate Us</a></li>
</ul>
</div>
<div id="area">
<?php
$conn=mysqli_connect("localhost","root","");
$sql=mysqli_select_db($conn,'bank');
$ref=$_POST["reg"];
$sql=mysqli_query($conn,"select * from application where reference_id=$ref");
if(mysqli_num_rows($sql)==0)
{
echo "no record found try again";
}
else
{
$row=mysqli_fetch_assoc($sql);
if($row['status']=="pending")
{
echo "your application is still in process";
}
else if($row['status']=='rejected')
{
echo "oops your application is rejected";
}
else
{
echo "your application is accepted "."<br>";
$accno="UBI";
$accno.=$ref;
echo "your account number is ".$accno."<br> <br>";
$sql=mysqli_query($conn,"select b.username,b.password from account a,user b where a.accountno=b.accountno and b.accountno='$accno' ");
$row=mysqli_fetch_assoc($sql);
echo "your user name is :: ".$row['username']."<br><br>";
echo "your password is :: ".$row['password']."<br> <br>";
}
}
?>
</div>
<form action="cheakStatus.html">
<input type="submit" value="BACK">
</form>
</body>
</html>