I don't understand why the code below is behaving strangely...any
ideas. It outputs August, July, July, May, May, March?
Thanks,
Chris
echo "<select name=\"month\"> \n";
for($i = 0; $i < 6; $i++) {
$str_lastmonth = date("F", mktime(0,0,0,da te("m")-
$i,date("d"),da te("Y")));
$val_lastmonth = date("m", mktime(0,0,0,da te("m")-
$i,date("d"),da te("Y")));
echo "<option value=\"{$val_l astmonth}\">${s tr_lastmonth}</option>\n";
}
echo "</select>\n";
ideas. It outputs August, July, July, May, May, March?
Thanks,
Chris
echo "<select name=\"month\"> \n";
for($i = 0; $i < 6; $i++) {
$str_lastmonth = date("F", mktime(0,0,0,da te("m")-
$i,date("d"),da te("Y")));
$val_lastmonth = date("m", mktime(0,0,0,da te("m")-
$i,date("d"),da te("Y")));
echo "<option value=\"{$val_l astmonth}\">${s tr_lastmonth}</option>\n";
}
echo "</select>\n";
Comment