Ver Mensaje Individual
  #10 (permalink)  
Antiguo 02/11/2015, 04:34
hechicerd0
 
Fecha de Ingreso: julio-2015
Ubicación: Barcelona
Mensajes: 93
Antigüedad: 8 años, 9 meses
Puntos: 3
Respuesta: Rango entre fechas

Te dejo un ejemplo de rango de fechas, intenta cambiarlo a tu código.

Código PHP:
Ver original
  1. $fechauno = 18-01-2010;
  2. $fechados = 10-02-2010;
  3.  
  4. $fechaaamostar = $fechauno;
  5. while(strtotime($fechados) >= strtotime($fechauno))
  6. {
  7. if(strtotime($fechados) != strtotime($fechaaamostar))
  8. {
  9. echo "$fechaaamostar<br />";
  10. $fechaaamostar = date("d-m-Y", strtotime($fechaaamostar . " + 1 day"));
  11. }
  12. else
  13. {
  14. echo "$fechaaamostar<br />";
  15. break;
  16. }  
  17. }