Update: 2026-06-11 18:22:57
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user