for($x=0; $x<12; $x++)
{
$month = mktime(0, 0, 0, date(\"m\")+$x, date(\"d\"), date(\"Y\"));
$key = date(\'m\', $month);
$monthname = date(\'F\', $mo
You might be getting the last day of the month (the 31st) bug - which led to two months with the same link - that Eddy very nicely figured out for me with this answer:
$current_month = date('n');
$MONTHS = array();
for ($m=0; $m<12; $m++) {
$display_month = $m + $current_month;
$MONTHS[] = date('F',mktime(1,1,1,$display_month,1,date("Y")));