-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer.php
62 lines (44 loc) · 1.54 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
52
53
54
55
56
57
58
59
60
61
62
<div class="row g-3 align-items-center mx-4 " id="Tab">
<div class="col-auto">
<h5>customers Table</h5>
</div>
<div class="col-auto " class="ADDC">
<!-- <span id="passwordHelpInline" class="form-text">
Must be 8-20 characters long.
</span> -->
<!-- <button type="submit" class="btn btn-primary" id="addNew"class="ADD">ADD</button> -->
</div>
</div>
<table class="table table-dark my-4 mx-1">
<thead class="my-2">
<th scope="row">#</th>
<td>Name</td>
<td>Phone Number</td>
<td>amount spent</td>
<!-- <td colspan="2" class="table-active">Loyality</td> -->
<td colspan="2" class="table-active">LastTransaction Date</td>
</thead>
<tbody class="my-4">
<?php
$sqln="SELECT * FROM `customer`";
$resultn=mysqli_query($conn,$sqln);
$num=mysqli_num_rows($resultn);
if($num>0){
$i=1;
while ( $row=mysqli_fetch_assoc($resultn)) {
echo'<tr>
<th scope="row">'.$i++.'</th>
<td>'.$row['custName'].'</td>
<td>'.$row['custNumber'].'</td>
<td>'.$row['amountSpend'].'</td>
<td>'.$row['lastTransaction'].'</td>
</tr>';
}
}
else{
}
?>
</tbody>
</table>
<script>
</script>