problem with date calculation

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
hi a really noob fresh starting php programmer:P

but i need really to solve this problem witha php script:

I can rent a flat  from 01/01/90 to 01/01/2011
ill rent that flat for a time that i will choice from that timeline above,
so ie I could rent that flat from 01/15/93 to 01/15/95.

well at this point i need to know how mani days for each year i rent that
flat in the above case it would be like this:

year 1990= 0
year 1991=0
year 1992=0
year 1993 = 15
year 1994=365
year 1995=15
year 1996=0
year 199...
year 2011=0

since im really noob could plz give me:
1)an input about the logic process to use to write a script
2)wich command i should use
3)a whole script or an idea of it if u can

i know the days from  and to each period, i cant just find the right routine  
to get the above datas

thx in advance and sry for my crap english.

Re: problem with date calculation

totoscarantino wrote:
Quoted text here. Click to load it


E. Dronkert

Re: problem with date calculation

Quoted text here. Click to load it

This is homework, right?  This newsgroup is not a free homework-solving
service.  Attack the problem yourself, show us what you've got, and we'll
help you fix it.
- Tim Roberts,
  Providenza & Boekelheide, Inc.

Site Timeline