'Forbidden'])); } try { $stmt = $con->prepare(' SELECT captain_id, fingerPrint FROM driverToken WHERE fingerPrint IS NOT NULL AND fingerPrint != "" ORDER BY captain_id '); $stmt->execute(); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); echo json_encode([ 'status' => 'success', 'count' => count($rows), 'data' => $rows, ]); } catch (Exception $e) { error_log('❌ [get_all_driver_fingerprints] ' . $e->getMessage()); http_response_code(500); echo json_encode(['error' => 'Server error']); }