Ver Mensaje Individual
  #17 (permalink)  
Antiguo 06/07/2009, 13:17
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 17 años, 3 meses
Puntos: 1517
Respuesta: Calendario con tablas.

Lo unico que te hace falta es hacer un explode a la $fechainicio por ejemplo

Código PHP:
//Vamos a suponer que $fechainicio esta declarado asi  
$fechainicio = "15-02-09"; 
$fechaInicioExplode = explode("-",$fechainicio); 
$meses = array("","ENE","FEB","MAR","ABR","MAY","JUN","JUL" ,"AGO","SEP","OCT","NOV","DEC");
$fecha = $fechaInicioExplode[1]; 
$n=(int)$fecha; 
$y=date("Y"); 
for(
$i=0; $i<count($meses); $i++){ 
  if(
$n<count($meses)){ 
    echo 
$meses[$n++]. " " . $y . "<br />"; 
  }else{ 
    
$n=1; 
    
$y++; 
  } 
}