PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Tue Aug 01, 2006 9:05 am
If your overall value is not changing that means that the two values fed to it did change or they are changing simultaneously and in the same increment.
NiGHTFiRE
Forum Contributor
Posts: 156 Joined: Sun May 14, 2006 10:36 am
Location: Sweden
Post
by NiGHTFiRE » Tue Aug 01, 2006 10:39 am
well the two dates have 1 month apart from each other :/ so they dont change. one is 2006-09-01 15:47:31 and the other one 2006-08-01 15:47:31
JayBird
Admin
Posts: 4524 Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:
Post
by JayBird » Tue Aug 01, 2006 10:46 am
so why would you expect the difference between the dats to change :s
NiGHTFiRE
Forum Contributor
Posts: 156 Joined: Sun May 14, 2006 10:36 am
Location: Sweden
Post
by NiGHTFiRE » Tue Aug 01, 2006 11:00 am
I thought that it would show how long it was untill that date.. So like now, it woudn't say 744 hours left. it would say a lower value.
JayBird
Admin
Posts: 4524 Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:
Post
by JayBird » Tue Aug 01, 2006 11:03 am
The difference between 2 dates that are 1 month apart, no matter what dates they are, will always be the same!?
Am i missing something?
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Tue Aug 01, 2006 11:28 am
I was kinda thinking the same thing...
NiGHTFiRE
Forum Contributor
Posts: 156 Joined: Sun May 14, 2006 10:36 am
Location: Sweden
Post
by NiGHTFiRE » Tue Aug 01, 2006 11:50 am
Okey, i probably explained what i meant poorly. I've got one date that a membership should stop at. And one date where the membership starts at. I want so the member can see how long he has his membership untill it expires.
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Tue Aug 01, 2006 12:14 pm
So the membership start date has nothing to do with your script. You want ENDDATE - NOW. Try that in your script logic and see what you come up with.
NiGHTFiRE
Forum Contributor
Posts: 156 Joined: Sun May 14, 2006 10:36 am
Location: Sweden
Post
by NiGHTFiRE » Tue Aug 01, 2006 12:16 pm
lol, yeah pretty smart