Hello! Need help with this!
I have this code to show the days in every month.
And every month is ok, they start and stor on the right day.
EXCEPT for august!
Why???
This is the code:
$months = [ 1 => "Jan", 2 => "Feb", 3 => "Mars", 4 => "April",
5 => "Maj", 6 => "Jun", 7 => "Juli", 8 => "August",
9 => "Sept", 10 => "Oct", 11 => "Nov", 12 => "Dec"
];
$monthNow = date("m");
echo "<select id='calmonth'>";
foreach ($months as $m=>$mth) {
printf("<option value='%s'%s>%s</option>",
$m, $m==$monthNow?" selected":"", $mth
);
}
echo "</select>";?>