Update: 2026-06-11 18:22:57
This commit is contained in:
48
walletintaleq.intaleq.xyz/v2/main/serviceApp/getCarPlateNotEdit.php
Executable file
48
walletintaleq.intaleq.xyz/v2/main/serviceApp/getCarPlateNotEdit.php
Executable file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
include "../connect.php";
|
||||
$phoneNumber = filterRequest("phone_number");
|
||||
|
||||
$sql = "SELECT
|
||||
CR.`id`,
|
||||
CR.`driverID`,
|
||||
CR.`vin`,
|
||||
CR.`car_plate`,
|
||||
CR.`make`,
|
||||
CR.`model`,
|
||||
CR.`year`,
|
||||
CR.`expiration_date`,
|
||||
CR.`color`,
|
||||
CR.`owner`,
|
||||
CR.`color_hex`,
|
||||
CR.`address`,
|
||||
CR.`displacement`,
|
||||
CR.`fuel`,
|
||||
CR.`registration_date`,
|
||||
CR.`created_at`
|
||||
FROM
|
||||
`CarRegistration` CR
|
||||
WHERE
|
||||
CR.`driverID` NOT IN(
|
||||
SELECT DISTINCT
|
||||
CPE.`driverId`
|
||||
FROM
|
||||
`carPlateEdit` CPE
|
||||
)
|
||||
LIMIT 10;
|
||||
";
|
||||
$stmt = $con->prepare($sql);
|
||||
$stmt->execute();
|
||||
|
||||
if ($stmt->rowCount() > 0) {
|
||||
// Fetch the records
|
||||
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
printSuccess($rows);
|
||||
|
||||
} else {
|
||||
// Print a failure message
|
||||
printFailure($message = "No Car verified yet found");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user