![]() |
Stuck with timestamps
I own a online game and have subscriptions to the game and I am trying to get the subscriptions last only last 30 days which I am having trouble with..
php Code:
Here is the code I just cannot make them only last 30 days. If you can help me please I will appreciate it |
First off, you should formulate your variables and so forth.
The most wise thing to do, is to, when people register, post a timestamp with just the time() function or PHP Code:
PHP Code:
If this is not what you mean, please formulate your post a bit more accurate and tell me what your plan is. |
Well I am not that good at coding I taught myself everything I know but I will give it a shot..
|
It is quite simple, you'll just have to find a place in your code to insert it. I hope it helps you!
php Code:
|
Could you please explain this for me please:
PHP Code:
And same thing when you use the function, you write PHP Code:
|
You're deducting 25 days off the current date with that command. You can do plus and minuses. As well as days, years, seconds, months, et cetera...
|
I get what you are saying. I just really needed help with that because my partner is out of the country and he does all of the coding that is what he does for a living. But thanks alot
|
| All times are GMT. The time now is 05:52 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0