this is basically a followup from my previous question. My index page show the current year and quarter (eg: 2012 quarter 3, july, august, september) with all its contents. My problem might be simple to you but im a php noobie so im getting a hard time in figuring out the logic and how to do it. my pages are programmed dynamically in the sense that each data is stored in their proper month and year, my only problem is how to display dynamically the homepage based on the current quarter and year. thanks! This is my current code that i got from one of the answers in my previous question but it only changes the quarter dynamically.
if(!isset($_GET['quarter']) && !isset($_GET['year'])){
$now = new DateTime();
$month = (int)$now->format("m");
if ($month >= 1 AND $month <= 3) {
include_once('/firstq2012.php');
}
elseif ($month >= 4 AND $month <= 6) {
include_once('/secondq2012.php');
}
elseif ($month >= 7 AND $month <= 9) {
include_once('/thirdq2012.php');
}
else {
include_once('/fourthq2012.php');
}
}