Re: Switch between two web pages
- From: d.s.stevenson@xxxxxxxxx
- Date: 27 Nov 2006 17:09:56 -0800
:) 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
.
- References:
- Switch between two web pages
- From: d . s . stevenson
- Re: Switch between two web pages
- From: Gzornenplat
- Switch between two web pages
- Prev by Date: Re: looking for a php open sourece project
- Next by Date: Re: Putting php code into html
- Previous by thread: Re: Switch between two web pages
- Next by thread: <?=$var?> on OS X
- Index(es):