An example of an 250x620 skyscraper Amazon random set of products custom island is:
Code
/* YOUR PHP CODE GOES IN THIS TOP SECTION */

$input = array(B08H8X23ZB,B08H8VZ6PV,B08CFSZLQ4,B07YMNLXL3);
$rand_keys = array_rand($input, 4);
$item1 = $input[$rand_keys[0]];
$item2 = $input[$rand_keys[1]];
$item3 = $input[$rand_keys[2]];
$item4 = $input[$rand_keys[3]];

/* YOUR HTML GOES BETWEEN THE EOF HEREDOCS BELOW */
$body = <<<EOF

<div style="padding:0;">
<script>
amzn_assoc_placement = "adunit0";
amzn_assoc_tracking_id = "amazon-20";
amzn_assoc_ad_mode = "manual";
amzn_assoc_ad_type = "smart";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_title = "Shop Amazon Deals";
amzn_assoc_linkid = "abc123xyz890";
amzn_assoc_search_bar = "false";
amzn_assoc_asins = "$item1,$item2,$item3,$item4";
amzn_assoc_size = "250x620";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"></script>
</div>

EOF;
You can add more products by adding more product codes to the $input array at the top. Use comas to separate each.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com