|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
i tried to make a "reset script"
at 12 a clock it would add 1 "day" to days been a member But it would only work if u refreshed acactly at 12 a clock how can i get it to do that when the clock hits 12 without the member needed to be even logged in?? |
|
#2
|
|||
|
|||
|
Quote:
That is very unclear on what you are trying to do.... Are you trying to show a calculation on how many days a person has been a member?
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
|
#3
|
|||
|
|||
|
yes
plz anyone |
|
#4
|
|||
|
|||
|
your going about this the wrong way, firstly when the person signs up, you need to use the microtime function, this will give you a time based on how many seconds since 1970
so you will have a number like 231546231316 (jibberish), ok, save this in the database with the users username and password, ok, now that you have done that, you need to do something really easy, when you need to figure out how many days, get the microtime in the datbase, lets call it $regTime for the registration time then, you need something like this PHP Code:
thats all you need to do. And that is the most easiest way to do it as well. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP help needed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|