![]() |
PHP pros, need help with something simple..
I have a script I had written for my paysites, it rotates a different html page every day, 5 different pages rotate total.
Here is the code, how would I need to tweek this in order to make it rotate 9 different pages total instead of 5? Thanks in advance! < ? php $day = date("z"); if($day >4) { while($day > 4) { $day = ($day - 4); } } include("0$day.html"); ?> |
Uhm.. change all the 4's to 8's :)
|
Quote:
|
Quote:
|
Quote:
jDoG |
Quote:
Results from my test: Day: 269, 08.html Day: 270, 09.html Day: 271, 01.html PHP Code:
|
Quote:
<pre> < ? php $NUMPAGES = 9; $day = date("z") % $NUMPAGES; include("0$day.html"); ?> </pre> |
Quote:
|
Quote:
|
Quote:
Thanks! |
AdultWebware v3.5 can rotate whatever you want for you.
I.e. make daily updates without spending a minute. I am always available for conversations of any kind here: Email: [email protected] MSN: [email protected] ICQ: 166487010 |
Quote:
|
Quote:
|
All times are GMT -7. The time now is 09:22 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123