-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanagement_car_delete.php
More file actions
38 lines (35 loc) · 1.21 KB
/
Copy pathmanagement_car_delete.php
File metadata and controls
38 lines (35 loc) · 1.21 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
<?php
session_start();
include("mysql_connect.inc.php");
$sql_vehicles = "SELECT * FROM vehicles";
$result_vehicles = mysqli_query($conn, $sql_vehicles);
echo "<h2>刪除車輛資訊</h2>";
echo "<table border='1'>
<tr>
<th>Select</th>
<th>Car ID</th>
<th>Brand</th>
<th>Model</th>
<th>License Plate</th>
<th>Status</th>
<th>Condition</th>
<th>Type</th>
<th>CC</th>
<th>Location ID</th>
</tr>";
while ($row_vehicles = mysqli_fetch_assoc($result_vehicles)) {
echo "<tr>
<td><a href='management_car_delete_process.php?car_id={$row_vehicles['car_id']}'>Delete</a></td>
<td>{$row_vehicles['car_id']}</td>
<td>{$row_vehicles['brand']}</td>
<td>{$row_vehicles['model']}</td>
<td>{$row_vehicles['license_plate']}</td>
<td>" . ($row_vehicles['car_status'] ? 'Available' : 'Unavailable') . "</td>
<td>{$row_vehicles['car_condition']}</td>
<td>{$row_vehicles['car_type']}</td>
<td>{$row_vehicles['cc']}</td>
<td>{$row_vehicles['location_id']}</td>
</tr>";
}
echo "</table>";
?>