Hi,
This is my first post and I'm not very experienced with php.
I'm using the date() function to generate each month name, but it's doing something really wierd!!
It all works fine apart from 'February', it doesn't seem to like Feb v.much, and it just generates 'March' instead. I thought it might be my local server so I made a little file with that bit in it and uploaded it to my server, exactly the same screwy result.
I've posted the code below, why does it throw March Twice?? 😕
code:
for($i=1; $i<=12; $i++)
{
echo "month #".$i." = ".date("F", mktime(0,0,0,$i))."<br>";
}
output:
month #1 = January
month #2 = March
month #3 = March
month #4 = April
month #5 = May
month #6 = June
month #7 = July
month #8 = August
month #9 = September
month #10 = October
month #11 = November
month #12 = December