Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/10/2012, 07:51
Avatar de Perr0
Perr0
 
Fecha de Ingreso: mayo-2005
Ubicación: Santiago de Chile, Chile
Mensajes: 676
Antigüedad: 19 años
Puntos: 79
Respuesta: Error en fecha

no te entendí, pero te dejo una alternativa a tu función
Código PHP:
Ver original
  1. <?php
  2. fechas('10 10-2012','31/10/2012');
  3. function lf($f){
  4.     return explode('/',preg_replace("#[,.\s\\\-]#","/",$f));
  5. }
  6. function fechas( $ini , $fin ){
  7.     list($dia1,$mes1,$anio1) = lf($ini);
  8.     list($dia2,$mes2,$anio2) = lf($fin);
  9.     for( $f = mktime(0,0,0,$mes1,$dia1++,$anio1) ; $f<=mktime(0,0,0,$mes2,$dia2,$anio2) ; $f = mktime(0,0,0,$mes1,$dia1++,$anio1))
  10.     echo date('d/m/Y',$f).'<br />';
  11. }
  12. ?>

salu2
__________________
Numerador Mp3 en Access =)
http://www.mediafire.com/download/r9...pdw/mp3(2).zip