Files
Siro/walletintaleq.intaleq.xyz/v2/main/serviceApp/getDriverNotCompleteRegistration.php
2026-06-11 18:22:59 +03:00

40 lines
723 B
PHP
Executable File

<?php
include "../connect.php";
$sql = "SELECT
*
FROM
phone_verification
LEFT JOIN `notesForDriverService`
ON
`notesForDriverService`.`phone` = `phone_verification`.`phone_number`
WHERE
phone_verification.phone_number NOT IN(
SELECT
phone
FROM
driver
WHERE
phone IS NOT NULL
) AND phone_verification.created_at >= DATE_SUB(CURDATE(), INTERVAL 18 DAY)
ORDER BY
created_at
DESC
LIMIT 0, 200;
";
$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");
}
?>