-
Notifications
You must be signed in to change notification settings - Fork 0
/
Notupdateable.php
59 lines (49 loc) · 1.19 KB
/
Notupdateable.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
<!DOCTYPE html>
<?php
require "menu.php";
?>
<html>
<body>
<div class="container">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Customer SSN</th>
<th>Customer IRS</th>
<th>Driver's License</th>
<th>First Registration</th>
<th>Country</th>
<th>Documents</th>
<th>Customer Type</th>
<th>Customer Name</th>
</tr>
</thead>
<?php
require 'connectToDB.php';
$query = "SELECT * FROM customers_info";
if($query_run = mysqli_query($mysql_connection,$query))
{
while($row = mysqli_fetch_assoc($query_run))
{
$ssn = $row["SSN_cust"];
$irs = $row["IRS_cust"];
$driverl = $row["DriverLicense"];
$freg = $row["FirstRegistration"];
$country = $row["Country"];
$doc = $row["Documents"];
$type = $row["cust_Type"];
$name = $row["Name"];
echo '<tr><td>'.$ssn.'</td><td>'.$irs.'</td><td>'.$driverl.'</td><td>'.$freg.'</td><td>'.$country.'</td><td>'.$doc.'</td><td>'.$type.'</td><td>'.$name.'</td></tr>';
}
}
else
{
echo 'Error';
}
mysqli_close($mysql_connection);
?>
</table>
</div>
</body>
</html>