Hola a todos nuevamente
tengo el sgte problema, hice un calendario, pero todos los meses comienzan por el lunes, no respeta los dias
Código PHP:
if (!isset($month)) $month = $current_month;
if (!isset($year)) $year = $current_year;
$daysinmonth = date("t", mktime(0, 0, 0, $current_month, 1, $current_year));
$dayinweek = date("w", mktime(0, 0, 0, $current_month, 1, $current_year));
//print date("d-m-y", mktime(0, 0, 0, $month, 1, $year));
if($dayinweek + $daysinmonth > 28) $totaldays = 35;
elseif($dayinweek + $daysinmonth > 35) $totaldays = 42;
else $totaldays = 28;
que podra ser???
ayuda plisss
saludos