I, Brian
September 18th, 2005, 05:42 PM
Sorry to ask a simple question, but I'm looking to randomise a display of content, which are called up with basic PHP include files.
So if there are 5 images, I'm calling them up as:
<!-- site content above -->
<?PHP include("/home/user/public_html/section1.php"); ?>
<?PHP include("/home/user/public_html/section2.php"); ?>
<?PHP include("/home/user/public_html/section3.php"); ?>
<?PHP include("/home/user/public_html/section4.php"); ?>
<?PHP include("/home/user/public_html/section5.php"); ?>
<!-- footer below -->
How would I randomise with a script within the body itself?
Many thanks for any replies.
So if there are 5 images, I'm calling them up as:
<!-- site content above -->
<?PHP include("/home/user/public_html/section1.php"); ?>
<?PHP include("/home/user/public_html/section2.php"); ?>
<?PHP include("/home/user/public_html/section3.php"); ?>
<?PHP include("/home/user/public_html/section4.php"); ?>
<?PHP include("/home/user/public_html/section5.php"); ?>
<!-- footer below -->
How would I randomise with a script within the body itself?
Many thanks for any replies.