prepare("SELECT * FROM affiliates WHERE id = ?"); $stmt->execute([$affiliate_id]); $affiliate = $stmt->fetch(); if (!$affiliate) { header('Location: supply.php'); exit; } // Fetch attachments $attachStmt = $pdo->prepare("SELECT * FROM affiliate_attachments WHERE affiliate_id = ?"); $attachStmt->execute([$affiliate_id]); $attachments = $attachStmt->fetchAll(); // Fetch signups $signupsStmt = $pdo->prepare(" SELECT * FROM affiliate_signups WHERE affiliate_id = ? ORDER BY clicked_at DESC LIMIT 100 "); $signupsStmt->execute([$affiliate_id]); $signups = $signupsStmt->fetchAll(); } catch (Exception $e) { error_log("View affiliate error: " . $e->getMessage()); header('Location: supply.php'); exit; } $signup_url = 'https://relevantreflex.com/signup.php?ref=' . $affiliate['affiliate_code']; include 'includes/header.php'; ?>
Complete information for
No signups yet
| Clicked At | Signed Up | Verified | Reward | Status | |
|---|---|---|---|---|---|
| Not completed'; ?> | ✅ Pending | ✅ Not verified | ₹ Pending | Complete Awaiting Verification Clicked Only |