-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFormemployer.retrieve.php
60 lines (54 loc) · 1.23 KB
/
Formemployer.retrieve.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
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
$host = "localhost";
$username = "root";
$password = "";
$database = "bank system";
$connect = mysqli_connect($host, $username, $password, $database);
$retrieve1 =$_POST['abc2'];
$query_view="SELECT name1, cnic, phone_no, city, post, seniority, address from employers where cnic='$retrieve1'";
$trasport_query=mysqli_query($connect,$query_view);
if(mysqli_num_rows($trasport_query) > 0 )
while($view=mysqli_fetch_assoc($trasport_query)){
$viewname3 = $view['name1'];
$viewphoneno = $view['phone_no'];
$viewcity = $view['city'];
$viewpost = $view['post'];
$viewseniority = $view['seniority'];
$viewaddress = $view['address'];
echo "
<html>
<head>
<style>
Table,th,td{
border: 1px solid black;
border-collapse: collapse;
}
</style>
</head>
<body>
<center>
<table style='margin-top: 200px ;'>
<tr style='background-color: lightskyblue';>
<th>NAME</th>
<th>PHONE NUMBER</th>
<th>CITY NAME</th>
<th>BRANCH POST</th>
<th>SENIORITY</th>
<th>ADDRESS</th>
</tr>
<TR>
<TD>$viewname3</TD>
<td>$viewphoneno</td>
<td>$viewcity</td>
<td>$viewpost</td>
<td>$viewseniority</td>
<td>$viewaddress</td>
</TR>
</table>
</center>
</body>
</html>";
}
else{
"<h1 STYLE='color: #17a2b8; text-align: center'> RECORD NOT FOUND</h1>";
}