Files
intaleq_v3_pure_php/ride/cancelRide/get.php
2026-04-28 13:04:27 +03:00

15 lines
282 B
PHP

<?php
require_once __DIR__ . '/../../connect.php';
$sql = "SELECT * FROM `canecl`";
$stmt = $con->prepare($sql);
$stmt->execute();
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
if ($stmt->rowCount() > 0) {
jsonSuccess($result);
} else {
jsonError("No records found");
}
?>