Update: 2026-07-25 18:40:38

This commit is contained in:
Hamza-Ayed
2026-07-25 18:40:38 +03:00
parent 4bbc687c15
commit 8d3e63d1c7
9 changed files with 58 additions and 65 deletions
+1 -7
View File
@@ -8,11 +8,5 @@ $stmt = $con->prepare($sql);
$stmt->execute();
$passenger_data = $stmt->fetchAll(PDO::FETCH_ASSOC);
if ($passenger_data) {
// Print the passenger data as JSON
jsonSuccess($data = $passenger_data);
} else {
// Print a failure message
jsonError($message = "No passenger data found");
}
jsonSuccess($passenger_data ?: []);
?>