ghqwerty Posted October 25, 2008 Share Posted October 25, 2008 so im wanting to add a bit of reality to my website and i dont know what to use or where to look for decent tutorials on it what im wanting to do is have a limit on stuf, say extortions so that a user can only do it 1 every , say, 24 hours could someone please explain to me what i ahve to learn and show me a good site for a tutorial of this thanks a million Matty Link to comment https://forums.phpfreaks.com/topic/130094-time-cron/ Share on other sites More sharing options...
DarkWater Posted October 25, 2008 Share Posted October 25, 2008 Err, what you just asked has nothing to do with cron. All you have to do is add a last_action column or whatever and store a time, and then if that time isn't more than 24 hours before the current time, they can't perform whatever action they are trying to do. Link to comment https://forums.phpfreaks.com/topic/130094-time-cron/#findComment-674531 Share on other sites More sharing options...
ghqwerty Posted October 25, 2008 Author Share Posted October 25, 2008 so add a column to my database and then when they try and do an extortion it checks that time so say do the current time - last action and if that is less than the time i want say echo " please wait x mor minutes" is the time measured in seconds or miliseconds again ? Link to comment https://forums.phpfreaks.com/topic/130094-time-cron/#findComment-674536 Share on other sites More sharing options...
DarkWater Posted October 25, 2008 Share Posted October 25, 2008 Seconds. Link to comment https://forums.phpfreaks.com/topic/130094-time-cron/#findComment-674551 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.