So, this is a bit of a complex thing.. I think. What I need is for an action to happen every 30 min. The action is adding one 'turn' to the user's turns. But this needs to happen even if the user is away, like if the person is away for 2 hours, he/she will have gained 4 turns in that time, but it needs to show how much time is left in the turn (the number doesn't have to update live, just every time the page is refreshed) I have an sql database if that will help..I was thinking of having it so it put a time stamp on the database of the last turn they where at, and then when it reaches 30 min do the query then reset the time stamp, and do that for every 30 min interval all at once when the user signs on.. But I do not know how to do math on the time and stuff. I hope I explained this well enough. I couldn't find anything online about this, unless I missed it somewhere. And just putting me in the right direction (telling me how to figure out if its been more then 30 min since the last time stamp, and if so how many times has it been 30 min, then leaving the remainder) and I should be able to figure it out from there. I wish I had some code to show you, any work that I have done so far on it, but I just got so lost on how to do it, my code got so messed up I just removed it all and tried to start over and here I am, I know how annoying it is from someone to just ask for code, which is why I am not really, Just wondering of someone here knows how to do this. THANKS
-POC0bob