Initial commit with updated Auth and media ignored

This commit is contained in:
Hamza-Ayed
2026-04-28 13:04:27 +03:00
commit 67af97474c
477 changed files with 66444 additions and 0 deletions

20
ride/location/delete.php Normal file
View File

@@ -0,0 +1,20 @@
<?
require_once __DIR__ . '/../../connect.php';
$driver_id = filterRequest("driver_id");
$sql = "DELETE FROM `car_locations` WHERE `driver_id` = $driver_id";
$stmt = $con->prepare($sql);
$stmt->execute();
if ($stmt->rowCount() > 0) {
// Print a success message
jsonSuccess($message = "Car location deleted successfully");
} else {
// Print a failure message
jsonError($message = "Failed to delete car location");
}
?>