We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29387
    • 40 Posts
    This might be obvious to most folks, but I just stumbled upon a little bit of PHP code which allows me to show different Amazon MP3 widgets every time a test page loads -- sure beats JavaScript hassles!

    Anyhow, here it is, if it can help anybody else:

    <?php
    $chunk = array("{{chunk1}}", "{{chunk2}}", "{{chunk3}}");
    $randomChunks = $chunk[array_rand($chunk, 1)];
    echo $randomChunks;
    ?>