prepare($sql); $stmt->execute([':driverID' => $driverID]); $result = $stmt->fetchAll(PDO::FETCH_ASSOC); if ($result) { // Print all promo records jsonSuccess($result); } else { // Print a failure message jsonError($message = "Failed to retrieve promo records"); } ?>