ManicMax Posted October 30, 2007 Share Posted October 30, 2007 I need to store in a database the time in one hour. Then i need to pull the stored time out compare it to the current time and display how long left. If there still is time left until the future time then it should do something and if it has already passed the stored time it should do something else and update the stored time to an hour from now. This has put a brick wall infront of me and a few work friends as we cannot display the time left or be certain that our whole script works as its is a mess of other peoples and has been scraped. Please help or send ideas to me Quote Link to comment https://forums.phpfreaks.com/topic/75411-php-time/ Share on other sites More sharing options...
rlindauer Posted October 30, 2007 Share Posted October 30, 2007 Store the time in a session and compare it to that instead? That way the time values are specific for each user. Quote Link to comment https://forums.phpfreaks.com/topic/75411-php-time/#findComment-381496 Share on other sites More sharing options...
ManicMax Posted October 30, 2007 Author Share Posted October 30, 2007 no it needs to be stored in a database as the user could login the next day or a month from now Quote Link to comment https://forums.phpfreaks.com/topic/75411-php-time/#findComment-381504 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.