Update: 2026-06-11 18:22:57
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
include "../connect.php";
|
||||
// $driverID = filterRequest("driverID");
|
||||
|
||||
$sql = "SELECT
|
||||
*
|
||||
FROM
|
||||
`driver`
|
||||
LEFT JOIN `notesForDriverService` ON `notesForDriverService`.`phone` = driver.phone
|
||||
WHERE
|
||||
`notesForDriverService`.phone = driver.phone
|
||||
AND MONTH(`driver`.`created_at`) = MONTH(CURRENT_DATE())
|
||||
ORDER BY
|
||||
`driver`.`created_at`
|
||||
DESC;";
|
||||
$stmt = $con->prepare($sql);
|
||||
$stmt->execute();
|
||||
|
||||
if ($stmt->rowCount() > 0) {
|
||||
// Fetch the record
|
||||
$row = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
printSuccess( $row);
|
||||
|
||||
}
|
||||
else{
|
||||
// Print a failure message
|
||||
printFailure($message = "No wallet record found");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user