Update: 2026-06-11 18:22:57

This commit is contained in:
Hamza-Ayed
2026-06-11 18:22:59 +03:00
parent c5170a88d2
commit 727068b668
629 changed files with 46050 additions and 46109 deletions

View File

@@ -0,0 +1,65 @@
<?php
include "../connect.php";
$sql = "SELECT
d.id,
d.phone,
d.email,
d.gender,
d.license_type,
d.national_number,
d.name_arabic,
d.name_english,
d.issue_date,
d.expiry_date,
d.license_categories,
d.address,
d.card_id,
d.occupation,
d.licenseIssueDate,
d.religion,
d.status,
d.birthdate,
d.site,
d.first_name,
d.last_name,
d.accountBank,
d.bankCode,
d.education,
d.employmentType,
d.maritalStatus,
d.fullNameMaritial,
d.expirationDate,
d.created_at,
d.updated_at,
wdc.id AS welcomId,
wdc.isCall,
wdc.notes,
wdc.createdAt AS welcomeCreatedAt
FROM
driver d
LEFT JOIN welcomeDriverCall wdc ON
wdc.driverId = d.id
WHERE
d.created_at BETWEEN DATE_SUB(CURDATE(), INTERVAL 1 DAY) AND CURDATE() + INTERVAL 1 DAY
ORDER BY
d.created_at DESC;
";
$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 Phone verified yet found");
}
?>