I need a way to change a page on every refresh
This is the code I have (the part that matters)
<div id="body">
<?php include('1.php'); ?>
<?php include('2.php'); ?>
<?php include('3.php'); ?>
<?php include('4.php'); ?>
<?php include('5.php'); ?>
</div>
I need to either randomize or rotate the order of the php files on every refresh, preferably rotate.so 1-2-3-4-5 refresh 2-3-4-5-1 and so on (or randomize)
what's the best way to do it?
I don't mind completely changing the code, the order can be randomized but all must appear without repetition.
Thanks
Edited by Jaan, 22 May 2008 - 03:16 AM.
If you're posting your codes, use [code] tags!


Sign In
Create Account

Back to top









