-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable-driver-accepted.php
More file actions
48 lines (43 loc) · 1.06 KB
/
table-driver-accepted.php
File metadata and controls
48 lines (43 loc) · 1.06 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
<!DOCTYPE html>
<html>
<head>
<title>Registration Result</title>
</head>
<body>
<?php
include('database.php');
$sql = "SELECT * FROM driver_accepted_ride_list";
$result = $conn->query($sql);
if (!$result) {
die("Invalid query: " . $conn->error);
}
?>
<table>
<tr>
<th>Serial No.</th>
<th>Reciepient Name</th>
<th>Journey Details</th>
<th>Mobile number</th>
<th>Driving License Number</th>
<th>Enter Initial Meter Reading</th>
<!-- Add more columns as needed -->
</tr>
<?php
while ($row = $result->fetch_assoc()) {
echo "
<tr>
<th>{$row['ID']}</th>
<td>{$row['User_name']}</td>
<td>{$row['start_pos']} TO {$row['end_pos']}</td>
<td>{$row['mobile']}</td>
<td>{$row['ID_no']}</td>
<td>
<a class='btn btn-success' href='update-fare-journey.php?ID_no=$row[ID_no]'>Update</a>
</td>
</tr>
";
}
?>
</table>
</body>
</html>