-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomer.php
51 lines (48 loc) · 1.4 KB
/
customer.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
<?php
include ('header.php');
?>
<?php
include ('connection.php');
$query = "SELECT * FROM customer";
$result1 = mysqli_query($connect, $query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Spark | Customer Details</title>
<link rel="stylesheet" href="customer.css">
</head>
<body>
<section>
<h1>Customer Details</h1>
<table>
<tr>
<th>ID</th>
<th>Customer Name</th>
<th>Account Number</th>
<th>Balance (Rs)</th>
<th>Email Id</th>
<th>Contact</th>
<th>Money Transfer</th>
</tr>
<?php
while($rows=$result1->fetch_assoc())
{
?>
<tr>
<td><?php echo $rows['id'];?></td>
<td><?php echo $rows['name'];?></td>
<td><?php echo $rows['acc_no'];?></td>
<td><?php echo $rows['balance'];?></td>
<td><?php echo $rows['email'];?></td>
<td><?php echo $rows['mobile'];?></td>
<td><a href="transaction.php?id= <?php echo $rows['id'] ;?>"> <button type="button" class="btn">Transact</button></a></td>
</tr>
<?php
}
?>
</table>
</section>
</body>
</html>