I am stuck on this script that needs to display more than 12 months. Right now, if I extent this script it just repeats the months again. I need this ASAP! Thank you in advance!
[php]
<?php echo"";
date_default_timezone_set('America/Los_Angeles');
$dateComponents = getdate();
$month = $dateComponents['mon'];
$year = $dateComponents['year'];
$max = 0;
while($max < 12){
if($month == 13){
$month = 1;
$year++;
}
$thisMonth = date("F", mktime(0, 0, 0, $month, 1, 2012));
echo "$thisMonth $year
";
$month++;
$max++;
}
echo "
[/php]