[thelist] PHP date month list...?

Tris beertastic at gmail.com
Thu Feb 15 05:11:47 CST 2007


Why doesn't this 'function' output a list of months?

for ($h = 1; $h <= 12; $h++) {
	$monthNo = date("m", $h);
	$monthName = date("M", $h);
	$flightdateListMonth .= "<option value=\"" . $monthNo . "\">" .
$monthName . "</option>";
}

Hmmmm... I know I'm missing something obvious...



-- 
When a person can no longer laugh at himself, it is time for others to
laugh at him.
Thomas Szasz



More information about the thelist mailing list