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 Quote Link to comment 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. Quote Link to comment 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 ? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted October 25, 2008 Share Posted October 25, 2008 Seconds. Quote Link to comment 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.