Re: Switch between two web pages



:) Thanks for the help, I am using a META refresh set to every 60 secs.
I solved the issue by using an include statement. The charting code is
held in a separate php file and then in the main page, I have stated
that if the time is equal to "00" etc. then include the appropriate
code. The main page is doing all the databasing and therefore is not
affected, and the graphs are updated and switched between accordingly.
Multiple elseif statements are used to allow for the times that each
page should be displayed.

$currentMinute = date("i");

<div>

if ($currentMinute == "00"){
include (AutoChartsCode.php);
} else {
include (AutoStatsCode.php);
}

</div>

Daniel

.