Update: 2026-06-29 23:09:43

This commit is contained in:
Hamza-Ayed
2026-06-29 23:09:43 +03:00
parent 65b2e68154
commit 3506b07bc7
42 changed files with 8252 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
include "../../connect.php";
$rideId = filterRequest("rideId");
$sql = "SELECT
*
FROM
`passengerlocation` pl
WHERE
pl.rideId = '$rideId'
ORDER BY
pl.createdAt
DESC
LIMIT 1";
$stmt = $con->prepare($sql);
$stmt->execute();
$car_locations = $stmt->fetchAll(PDO::FETCH_ASSOC);
if ($car_locations) {
// Print the car location data as JSON
printSuccess($data = $car_locations);
} else {
// Print a failure message
printFailure($message = "No car locations found");
}
?>