-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSecond_Page.php
More file actions
70 lines (53 loc) · 1.2 KB
/
Second_Page.php
File metadata and controls
70 lines (53 loc) · 1.2 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
<html>
<head>
<title>Second Page</title>
<link rel="icon" type="image/jpg" href="TSFIMG.png" ></link>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 80%;
margin-left:auto;
margin-right:auto;
}
td, th {
border: 1px solid #dddddd;
text-align: center;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head>
<body>
<form name="myform" action="get">
<h2 align="center" >Customer Details </h2>
<table>
<tr>
<th>Customer Name</th>
<th>Email</th>
<th>Current Balance</th>
<th>Action</th>
</tr>
<?php
include 'connection.php';
$display= "select * from customer";
$query=mysqli_query($dbvar,$display);
while($res=mysqli_fetch_array($query))
{
?>
<tr>
<td><?php echo $res['Customer Name'] ?></td>
<td><?php echo $res['Email'] ?></td>
<td><?php echo $res['Current Balance'] ?></td>
<td><?php echo '<a target="_blank" href="Third_Page.php?Sender='.$res[0].'&Email='.$res[1].'&Current_Balance='.$res[2].'">Select</a> ' ?> </td>
</tr>
<?php
}
?>
</table>
<br><br>
</form>
</body>
</html>