Posted by totoscarantino on 10/22/05 13:05
hi guys..im 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.
Navigation:
[Reply to this message]
|