Could any one fix the script? It doesn't work for me when I test it out.
Code: Select all
<?php
$link[1] = "1.html",
//spring
$link[2] = "2.html";
//summer
$link[3] = "3.html";
//fall
$link[4] = "4.html";
//winter
$rmq = date("n");
if ($rmq >= 3 && $rmq <= 5) {
//show spring
echo "<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">";
echo "<meta http-equiv="refresh" content="2;URL=$link[1]">";
}
if ($rmq >= 6 && $rmq <= 9) {
//show summer
echo "<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">";
echo "<meta http-equiv="refresh" content="2;URL=$link[2]">";
}
if ($rmq >= 10 && $rmq <= 11) {
//show fall
echo "<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">";
echo "<meta http-equiv="refresh" content="2;URL=$link[3]">";
}
if ($rmq >= 1 && $rmq <= 2) {
//show winter
echo "<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">";
echo "<meta http-equiv="refresh" content="2;URL=$link[4]">";
}
if ($rmq = 12) {
//show winter
echo "<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">";
echo "<meta http-equiv="refresh" content="2;URL=$link[4]">";
}
?>