Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/05/2005, 13:13
Avatar de maralbust
maralbust
 
Fecha de Ingreso: febrero-2004
Ubicación: Santiago
Mensajes: 578
Antigüedad: 22 años, 8 meses
Puntos: 0
problema con calendario

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
__________________
..:: NADA SE PIERDE SOLO SE TRANSFORMA ::..