# Randomizing a php include

**URL:** <https://forum.kirupa.com/t/randomizing-a-php-include/78702>\
**Category:** Uncategorized\
**Created:** [February 7, 2005, 3:24pm UTC](https://forum.kirupa.com/t/randomizing-a-php-include/78702 "2005-02-07T15:24:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommyhaych](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tommyhaych](https://forum.kirupa.com/u/tommyhaych)\
**Post date:** [February 7, 2005, 3:24pm UTC](https://forum.kirupa.com/t/randomizing-a-php-include/78702/1 "2005-02-07T15:24:17Z")

</div>

hello there.

I’m in the middle of re-designing a record label fan site (im a bit sad, yes) and I want an include to appear to the right of the main content, the page included should have an image of a band & a sentence about them.

So basically a bog standard html page.

I know how to actually include the file in the page, but because there’s more than one band, i want it to randomize each time someone logs on.

How do I do this?

Thanks  
Tom
