Update affiliate.php